mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
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
|
||||
'';
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user