3
0
Fork 0
forked from mirrors/nixpkgs

libdwarf: version the shared object (#20996)

Upstream sets the soname, so binaries compiled against libdwarf.so will
link against libdwarf.so.1 at runtime. Install libdwarf.so.1 and
symlink libdwarf.so to it so both linking and runtime loading work again.
This commit is contained in:
Peter Marheine 2016-12-09 05:34:25 +11:00 committed by Vladimír Čunát
parent f0b9ecfa01
commit 469e5e7768

View file

@ -18,7 +18,8 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/lib $out/include
cp libdwarf.so $out/lib
cp libdwarf.so.1 $out/lib
ln -s libdwarf.so.1 $out/lib/libdwarf.so
cp libdwarf.h dwarf.h $out/include
'';