3
0
Fork 0
forked from mirrors/nixpkgs

* Make a symlink "lib64" to "lib" to fix ldd (which looks for the

dynamic linker in lib64 on x86_64).  (NIXOS-54)

svn path=/nixpkgs/trunk/; revision=8741
This commit is contained in:
Eelco Dolstra 2007-05-24 13:33:23 +00:00
parent cbc8eee7ac
commit bfbdd69b2f
2 changed files with 8 additions and 0 deletions

View file

@ -56,6 +56,12 @@ postInstall() {
# appears to be a regression:
# http://www.mail-archive.com/debian-glibc@lists.debian.org/msg31543.html
cp ../$sourceRoot/linuxthreads/semaphore.h $out/include
# Fix for NIXOS-54 (ldd not working on x86_64). Make a symlink
# "lib64" to "lib".
if test -n "$is64bit"; then
ln -s lib $out/lib64
fi
}

View file

@ -21,6 +21,8 @@ stdenv.mkDerivation {
inherit kernelHeaders installLocales;
inherit (stdenv) is64bit;
# `--with-tls --without-__thread' enables support for TLS but causes
# it not to be used. Required if we don't want to barf on 2.4
# kernels. Or something.