aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-28 16:07:01 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-28 16:07:01 +0000
commitce5fd1cc12f678627163d532acd7dd4251758198 (patch)
tree5df267530dd04097bd0fee73fdebb8d317b818fb
parentdec8fbc52bab9cc19ac97c422e79e40fa70c2b13 (diff)
* Do not set LD_LIBRARY_PATH; it breaks many things. E.g., SuSE's ssh
dynamically links against libdb4 (?!), due to LD_LIBRARY_PATH it picks up our libdb4 instead of SuSE's libdb4, but our libdb4 uses another glibc so loading barfs. Instead, all packages should use rpaths to store library locations in executables/libraries. The disadvantage is that overriding rpaths is harder. (It is possible by invoking the dynamic linker directly, e.g., `/lib/ld-linux.so.2 --ignore-path LIST program args...' to ignore the rpath for the libraries in LIST). It would be better to use DT_RUNPATH, which is consulted by the dynamic linker *after* LD_LIBRARY_PATH but *before* ld.so.cache and the system directories.
-rw-r--r--scripts/nix-profile.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in
index 3a64caa04..0d059e1a2 100644
--- a/scripts/nix-profile.sh.in
+++ b/scripts/nix-profile.sh.in
@@ -6,7 +6,7 @@
export PATH=$NIX_LINKS/bin:@prefix@/bin:$PATH
- export LD_LIBRARY_PATH=$NIX_LINKS/lib:$LD_LIBRARY_PATH
+# export LD_LIBRARY_PATH=$NIX_LINKS/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=$NIX_LINKS/lib:$LIBRARY_PATH