mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
gcc-cross-wrapper: Explicitly add LD program name.
This is because autoconf is passing -print-prog-name=ld to the cross-gcc, which in turn assumes a FHS compliant filesystem hierarchy and searches ../../../../$crossConfig/bin/ld for the correct ld. Of course, this won't work on Nix, hence we're explicitly passing the correct LD program name. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
4f69722ee5
commit
c5ab2bfd25
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ fi
|
||||||
|
|
||||||
if test "$dontSetConfigureCross" != "1"; then
|
if test "$dontSetConfigureCross" != "1"; then
|
||||||
configureFlags="$configureFlags --build=$system --host=$crossConfig"
|
configureFlags="$configureFlags --build=$system --host=$crossConfig"
|
||||||
|
# This is because -print-prog-name tries to search FHS paths.
|
||||||
|
configureFlags="$configureFlags LD=$crossConfig-ld"
|
||||||
fi
|
fi
|
||||||
# Disabling the tests when cross compiling, as usually the tests are meant for
|
# Disabling the tests when cross compiling, as usually the tests are meant for
|
||||||
# native compilations.
|
# native compilations.
|
||||||
|
|
Loading…
Reference in a new issue