Fixing nscd in glibc (thank you Ludovic!).

svn path=/nixpkgs/branches/stdenv-updates/; revision=24157
This commit is contained in:
Lluís Batlle i Rossell 2010-10-07 21:59:31 +00:00
parent 180cb34e2a
commit fa4ef6621a

View File

@ -76,10 +76,14 @@ stdenv.mkDerivation ({
./nix-locale-archive.patch
];
# Needed for glibc to build with the gnumake 3.82
# http://comments.gmane.org/gmane.linux.lfs.support/31227
postPatch = ''
# Needed for glibc to build with the gnumake 3.82
# http://comments.gmane.org/gmane.linux.lfs.support/31227
sed -i 's/ot \$/ot:\n\ttouch $@\n$/' manual/Makefile
# nscd needs libgcc, and we don't want it dynamically linked
# because we don't want it to depend on bootstrap-tools libs.
echo "LDFLAGS-nscd += -static-libgcc" >> nscd/Makefile
'';
configureFlags = [