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:
parent
f0b9ecfa01
commit
469e5e7768
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue