summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2007-05-24 13:33:23 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2007-05-24 13:33:23 +0000
commitbfbdd69b2fba243ccf4d83e167363563e9786497 (patch)
treef7fb7604b343671cd0e6d59984045ec157596c84 /pkgs
parentcbc8eee7acebe2a71fc7981fba292bc89b0147d0 (diff)
downloadnixlib-bfbdd69b2fba243ccf4d83e167363563e9786497.tar
nixlib-bfbdd69b2fba243ccf4d83e167363563e9786497.tar.gz
nixlib-bfbdd69b2fba243ccf4d83e167363563e9786497.tar.bz2
nixlib-bfbdd69b2fba243ccf4d83e167363563e9786497.tar.lz
nixlib-bfbdd69b2fba243ccf4d83e167363563e9786497.tar.xz
nixlib-bfbdd69b2fba243ccf4d83e167363563e9786497.tar.zst
nixlib-bfbdd69b2fba243ccf4d83e167363563e9786497.zip
* 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
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/glibc/builder.sh6
-rw-r--r--pkgs/development/libraries/glibc/default.nix2
2 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glibc/builder.sh b/pkgs/development/libraries/glibc/builder.sh
index f8726fd31d23..8d5d6908f045 100644
--- a/pkgs/development/libraries/glibc/builder.sh
+++ b/pkgs/development/libraries/glibc/builder.sh
@@ -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
 }
 
 
diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix
index 086747e9dcc6..e4720cf56d52 100644
--- a/pkgs/development/libraries/glibc/default.nix
+++ b/pkgs/development/libraries/glibc/default.nix
@@ -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.