Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158239 - [toolchain-funcs.eclass] Cannot get cross-compiler version
Summary: [toolchain-funcs.eclass] Cannot get cross-compiler version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-15 12:28 UTC by Roberto Castagnola
Modified: 2006-12-16 02:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc-version-args.patch (gcc-version-args.patch,1.11 KB, patch)
2006-12-15 21:26 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Castagnola 2006-12-15 12:28:17 UTC
I'm trying to write a new ebuild using toolchain, but I can't get cross-compiler version. Shouldn't 
  $(gcc-major-version mingw32)
give me mingw32-gcc version? Instead I get native-compiler version.
Comment 1 SpanKY gentoo-dev 2006-12-15 17:17:42 UTC
$(gcc-major-version) expands down to $(tc-getCC) which respects CHOST/CC ... so if you were to set CHOST/CC properly before calling $(gcc...) functions, it'd work

only reason i'd be hesitant about adding support to $(gcc...) functions for taking an argument of the CHOST is that it'd probably be abused ...

it should be easy though to pass down "$@" in all the $(gcc...) functions though
Comment 2 SpanKY gentoo-dev 2006-12-15 21:26:33 UTC
Created attachment 104112 [details, diff]
gcc-version-args.patch

try this patch please
Comment 3 Roberto Castagnola 2006-12-16 02:27:36 UTC
(In reply to comment #2)
> try this patch please
> 

Yes, it works :)
Comment 4 SpanKY gentoo-dev 2006-12-16 02:37:18 UTC
added to cvs then, thanks for testing