gcc: When cross compiling, always expect prefixed binutils
Previously this was just done on Darwin.
This commit is contained in:
parent
7018dfb9f4
commit
20fa6fd871
|
@ -78,6 +78,9 @@ let version = "4.5.4";
|
||||||
withArch +
|
withArch +
|
||||||
withCpu +
|
withCpu +
|
||||||
withAbi +
|
withAbi +
|
||||||
|
# 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
|
(if crossMingw && crossStageStatic then
|
||||||
" --with-headers=${libcCross}/include" +
|
" --with-headers=${libcCross}/include" +
|
||||||
" --with-gcc" +
|
" --with-gcc" +
|
||||||
|
|
|
@ -143,6 +143,9 @@ let version = "4.8.5";
|
||||||
withFpu +
|
withFpu +
|
||||||
withFloat +
|
withFloat +
|
||||||
withMode +
|
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
|
(if crossMingw && crossStageStatic then
|
||||||
" --with-headers=${libcCross}/include" +
|
" --with-headers=${libcCross}/include" +
|
||||||
" --with-gcc" +
|
" --with-gcc" +
|
||||||
|
@ -169,10 +172,6 @@ let version = "4.8.5";
|
||||||
(if crossDarwin then " --with-sysroot=${libcCross.out}/share/sysroot"
|
(if crossDarwin then " --with-sysroot=${libcCross.out}/share/sysroot"
|
||||||
else " --with-headers=${libcCross.dev}/include") +
|
else " --with-headers=${libcCross.dev}/include") +
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# 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-__cxa_atexit" +
|
||||||
" --enable-long-long" +
|
" --enable-long-long" +
|
||||||
(if crossMingw then
|
(if crossMingw then
|
||||||
|
|
|
@ -145,6 +145,9 @@ let version = "4.9.4";
|
||||||
withFpu +
|
withFpu +
|
||||||
withFloat +
|
withFloat +
|
||||||
withMode +
|
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
|
(if crossMingw && crossStageStatic then
|
||||||
" --with-headers=${libcCross}/include" +
|
" --with-headers=${libcCross}/include" +
|
||||||
" --with-gcc" +
|
" --with-gcc" +
|
||||||
|
@ -169,11 +172,6 @@ let version = "4.9.4";
|
||||||
else
|
else
|
||||||
(if crossDarwin then " --with-sysroot=${libcCross.out}/share/sysroot"
|
(if crossDarwin then " --with-sysroot=${libcCross.out}/share/sysroot"
|
||||||
else " --with-headers=${libcCross.dev}/include") +
|
else " --with-headers=${libcCross.dev}/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-__cxa_atexit" +
|
||||||
" --enable-long-long" +
|
" --enable-long-long" +
|
||||||
(if crossMingw then
|
(if crossMingw then
|
||||||
|
|
|
@ -149,6 +149,9 @@ let version = "5.4.0";
|
||||||
withFpu +
|
withFpu +
|
||||||
withFloat +
|
withFloat +
|
||||||
withMode +
|
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
|
(if crossMingw && crossStageStatic then
|
||||||
" --with-headers=${libcCross}/include" +
|
" --with-headers=${libcCross}/include" +
|
||||||
" --with-gcc" +
|
" --with-gcc" +
|
||||||
|
@ -173,11 +176,6 @@ let version = "5.4.0";
|
||||||
else
|
else
|
||||||
(if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot"
|
(if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else " --with-headers=${getDev libcCross}/include") +
|
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-__cxa_atexit" +
|
||||||
" --enable-long-long" +
|
" --enable-long-long" +
|
||||||
(if crossMingw then
|
(if crossMingw then
|
||||||
|
|
|
@ -145,6 +145,9 @@ let version = "6.3.0";
|
||||||
withFpu +
|
withFpu +
|
||||||
withFloat +
|
withFloat +
|
||||||
withMode +
|
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
|
(if crossMingw && crossStageStatic then
|
||||||
" --with-headers=${libcCross}/include" +
|
" --with-headers=${libcCross}/include" +
|
||||||
" --with-gcc" +
|
" --with-gcc" +
|
||||||
|
@ -169,11 +172,6 @@ let version = "6.3.0";
|
||||||
else
|
else
|
||||||
(if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot"
|
(if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else " --with-headers=${getDev libcCross}/include") +
|
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-__cxa_atexit" +
|
||||||
" --enable-long-long" +
|
" --enable-long-long" +
|
||||||
(if crossMingw then
|
(if crossMingw then
|
||||||
|
|
|
@ -145,6 +145,9 @@ let version = "7-20170409";
|
||||||
withFpu +
|
withFpu +
|
||||||
withFloat +
|
withFloat +
|
||||||
withMode +
|
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
|
(if crossMingw && crossStageStatic then
|
||||||
" --with-headers=${libcCross}/include" +
|
" --with-headers=${libcCross}/include" +
|
||||||
" --with-gcc" +
|
" --with-gcc" +
|
||||||
|
@ -170,10 +173,6 @@ let version = "7-20170409";
|
||||||
(if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot"
|
(if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else " --with-headers=${getDev libcCross}/include") +
|
else " --with-headers=${getDev libcCross}/include") +
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# 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-__cxa_atexit" +
|
||||||
" --enable-long-long" +
|
" --enable-long-long" +
|
||||||
(if crossMingw then
|
(if crossMingw then
|
||||||
|
|
Loading…
Reference in New Issue