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
This commit is contained in:
Lluís Batlle i Rossell 2010-12-02 22:23:15 +00:00
parent b5f1600e49
commit 9af474ca72

View File

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