libarchive: fix .la file for lzo2

This commit is contained in:
Luca Bruno 2015-09-25 14:06:23 +02:00
parent 45b1f5858c
commit 702fde3a91

View file

@ -26,7 +26,9 @@ stdenv.mkDerivation rec {
'' else null;
preFixup = ''
sed 's|-lcrypto|-L${openssl}/lib -lcrypto|' -i $out/lib/libarchive.la
sed -i $out/lib/libarchive.la \
-e 's|-lcrypto|-L${openssl}/lib -lcrypto|' \
-e 's|-llzo2|-L${lzo}/lib -llzo2|'
'';
meta = {