3
0
Fork 0
forked from mirrors/nixpkgs

Specify the dynamic linker name for cross-compilation to GNU/Hurd.

svn path=/nixpkgs/trunk/; revision=27428
This commit is contained in:
Ludovic Courtès 2011-06-12 22:32:44 +00:00
parent aa6313051b
commit 65f50c7aab

View file

@ -64,9 +64,10 @@ stdenv.mkDerivation {
# This is not the best way to do this. I think the reference should be
# the style in the gcc-cross-wrapper, but to keep a stable stdenv now I
# do this sufficient if/else.
dynamicLinker =
dynamicLinker =
(if stdenv.cross.arch == "arm" then "ld-linux.so.3" else
if stdenv.cross.arch == "mips" then "ld.so.1" else
if stdenv.lib.hasSuffix "pc-gnu" cross.config then "ld.so.1" else
abort "don't know the name of the dynamic linker for this platform");
};