From 65f50c7aab18f88daea227787497e05e5c9460f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 12 Jun 2011 22:32:44 +0000 Subject: [PATCH] Specify the dynamic linker name for cross-compilation to GNU/Hurd. svn path=/nixpkgs/trunk/; revision=27428 --- pkgs/build-support/gcc-wrapper/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/gcc-wrapper/default.nix b/pkgs/build-support/gcc-wrapper/default.nix index 4e486f8fc646..717151f2fb8a 100644 --- a/pkgs/build-support/gcc-wrapper/default.nix +++ b/pkgs/build-support/gcc-wrapper/default.nix @@ -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"); };