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.
$(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
Created attachment 104112 [details, diff] gcc-version-args.patch try this patch please
(In reply to comment #2) > try this patch please > Yes, it works :)
added to cvs then, thanks for testing