gcc: When cross compiling, always expect prefixed binutils

Previously this was just done on Darwin.
This commit is contained in:
John Ericson
2017-05-17 15:33:05 -04:00
parent 7018dfb9f4
commit 20fa6fd871
6 changed files with 18 additions and 23 deletions
+3 -5
View File
@@ -145,6 +145,9 @@ let version = "6.3.0";
withFpu +
withFloat +
withMode +
# Ensure that -print-prog-name is able to find the correct programs.
" --with-as=${binutils}/bin/${cross.config}-as" +
" --with-ld=${binutils}/bin/${cross.config}-ld" +
(if crossMingw && crossStageStatic then
" --with-headers=${libcCross}/include" +
" --with-gcc" +
@@ -169,11 +172,6 @@ let version = "6.3.0";
else
(if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot"
else " --with-headers=${getDev libcCross}/include") +
# Ensure that -print-prog-name is able to find the correct programs.
(stdenv.lib.optionalString (crossMingw || crossDarwin) (
" --with-as=${binutils}/bin/${cross.config}-as" +
" --with-ld=${binutils}/bin/${cross.config}-ld"
)) +
" --enable-__cxa_atexit" +
" --enable-long-long" +
(if crossMingw then