From 9af474ca722ee12aa6e6e99fe85fdb756597f135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 2 Dec 2010 22:23:15 +0000 Subject: [PATCH] Fixing a problem of nscd on (only) armv5tel (soft-float). It gets linked to libgcc_s (shared lib) unless doing the trick I thought feasible of telling 'configure' that the linker does not support "as-needed". I found this reading their 'configure' script. We don't want nscd linked to libgcc because that would make glibc dependant on the previous gcc. This only happens on armv5tel, for the supported platforms. svn path=/nixpkgs/branches/stdenv-updates/; revision=24959 --- pkgs/development/libraries/glibc-2.12/common.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/glibc-2.12/common.nix b/pkgs/development/libraries/glibc-2.12/common.nix index f29fb8a0b04..9ad0358e5cc 100644 --- a/pkgs/development/libraries/glibc-2.12/common.nix +++ b/pkgs/development/libraries/glibc-2.12/common.nix @@ -115,6 +115,10 @@ stdenv.mkDerivation ({ "--host=arm-linux-gnueabi" "--build=arm-linux-gnueabi" "--without-fp" + + # To avoid linking with -lgcc_s (dynamic link) + # so the glibc does not depend on its compiler store path + "libc_cv_as_needed=no" ]; buildInputs = stdenv.lib.optionals (cross != null) [ gccCross ]