mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
ce5fd1cc12
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.
20 lines
518 B
Bash
20 lines
518 B
Bash
#if test -z "$NIX_SET"; then
|
|
|
|
# export NIX_SET=1
|
|
|
|
NIX_LINKS=@localstatedir@/nix/links/current
|
|
|
|
export PATH=$NIX_LINKS/bin:@prefix@/bin:$PATH
|
|
|
|
# export LD_LIBRARY_PATH=$NIX_LINKS/lib:$LD_LIBRARY_PATH
|
|
|
|
export LIBRARY_PATH=$NIX_LINKS/lib:$LIBRARY_PATH
|
|
|
|
export C_INCLUDE_PATH=$NIX_LINKS/include:$C_INCLUDE_PATH
|
|
export CPLUS_INCLUDE_PATH=$NIX_LINKS/include:$CPLUS_INCLUDE_PATH
|
|
|
|
export PKG_CONFIG_PATH=$NIX_LINKS/lib/pkgconfig:$PKG_CONFIG_PATH
|
|
|
|
# export MANPATH=$NIX_LINKS/man:$MANPATH
|
|
|
|
#fi
|