From 469e5e7768cf850ac4c5a8e6df43a52f209c3b79 Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Fri, 9 Dec 2016 05:34:25 +1100 Subject: [PATCH] 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. --- pkgs/development/libraries/libdwarf/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libdwarf/default.nix b/pkgs/development/libraries/libdwarf/default.nix index eda68fc73d3f..48853b63c792 100644 --- a/pkgs/development/libraries/libdwarf/default.nix +++ b/pkgs/development/libraries/libdwarf/default.nix @@ -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 '';