aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-08-28 13:47:31 +0100
committerSergei Trofimovich <slyich@gmail.com>2021-08-28 13:51:10 +0100
commit4993174be59adc688efad49f2f9205688bd2ee26 (patch)
tree326ada387005bf063e5b0bf948e9e43643505cc4 /perl
parentaf94b54db3a2be100731a215cb5e95f306471731 (diff)
mk: prefert inplace library paths to system ones
The link failure happens on a system with stable nix-2.3.15 installed in /usr/lib64 (it's libutil.so API differs from master): ``` LANG=C make V=1 g++ -o /home/slyfox/dev/git/nix/src/libstore/libnixstore.so \ -shared -L/usr/lib64 -Wl,--no-copy-dt-needed-entries \ src/libstore/binary-cache-store.o ... src/libstore/uds-remote-store.o \ -lsqlite3 -lcurl -lsodium -pthread -ldl -lseccomp -Wl,-z,defs -Wl,-soname=libnixstore.so -Wl,-rpath,/home/slyfox/dev/git/nix/src/libutil -Lsrc/libutil -lnixutil ld: src/libstore/binary-cache-store.o: in function `nix::BinaryCacheStore::BinaryCacheStore( std::map<std::__cxx11::basic_string<char, std::char_traits<char>, ... nix/src/libstore/binary-cache-store.cc:30: undefined reference to `nix::readFile( std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ... ... ``` This happens due to `-L/usr/lib64 -Lsrc/libutil` search path ordering. The change turns it into `-Lsrc/libutil -L/usr/lib64`. Closes: https://github.com/NixOS/nix/issues/3087
Diffstat (limited to 'perl')
0 files changed, 0 insertions, 0 deletions