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:
aszlig 2014-02-27 18:28:32 +01:00
parent 4f69722ee5
commit c5ab2bfd25
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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.