libunwind: fix bad liblzma.la reference, split dev output
This commit is contained in:
parent
8e73a7bf53
commit
deda7f46c7
@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e '/LIBLZMA/s:-lzma:-llzma:' configure
|
sed -i -e '/LIBLZMA/s:-lzma:-llzma:' configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
outputs = [ "dev" "out" ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ xz ];
|
propagatedBuildInputs = [ xz ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
|
NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
|
||||||
@ -30,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
find $out -name \*.la | while read file; do
|
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
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user