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
@ -70,6 +70,8 @@ fi
|
||||
|
||||
if test "$dontSetConfigureCross" != "1"; then
|
||||
configureFlags="$configureFlags --build=$system --host=$crossConfig"
|
||||
# This is because -print-prog-name tries to search FHS paths.
|
||||
configureFlags="$configureFlags LD=$crossConfig-ld"
|
||||
fi
|
||||
# Disabling the tests when cross compiling, as usually the tests are meant for
|
||||
# native compilations.
|
||||
|
Loading…
Reference in New Issue
Block a user