libunwind: fix bad liblzma.la reference, split dev output

This commit is contained in:
Vladimír Čunát 2015-10-28 12:43:35 +01:00
parent 8e73a7bf53
commit deda7f46c7

View File

@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
sed -i -e '/LIBLZMA/s:-lzma:-llzma:' configure
'';
outputs = [ "dev" "out" ];
propagatedBuildInputs = [ xz ];
NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
@ -30,7 +32,7 @@ stdenv.mkDerivation rec {
postInstall = ''
find $out -name \*.la | while read file; do
sed -i 's,-llzma,${xz}/lib/liblzma.la,' $file
sed -i 's,-llzma,${xz.out}/lib/liblzma.la,' $file
done
'';