Enabling support of ld-linux-armhf.so.3 ld.so, in ARM

I use wildcards.
This commit is contained in:
Lluís Batlle i Rossell 2012-12-29 14:14:53 +00:00
parent a8dedfc1d0
commit 29fdf278ce
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ if test -z "$nativeLibc"; then
# The dynamic linker is passed in `ldflagsBefore' to allow
# explicit overrides of the dynamic linker by callers to gcc/ld
# (the *last* value counts, so ours should come first).
echo "-dynamic-linker $dynamicLinker" > $out/nix-support/libc-ldflags-before
echo "-dynamic-linker" $dynamicLinker > $out/nix-support/libc-ldflags-before
fi
if test -n "$nativeTools"; then

View File

@ -85,7 +85,8 @@ stdenv.mkDerivation ({
if !nativeLibc then
(if stdenv.system == "i686-linux" then "ld-linux.so.2" else
if stdenv.system == "x86_64-linux" then "ld-linux-x86-64.so.2" else
if stdenv.isArm then "ld-linux.so.3" else
# ARM with a wildcard, which can be "" or "-armhf".
if stdenv.isArm then "ld-linux*.so.3" else
if stdenv.system == "powerpc-linux" then "ld.so.1" else
if stdenv.system == "mips64el-linux" then "ld.so.1" else
abort "don't know the name of the dynamic linker for this platform")