gnutls: More hacks to .la files

Some .la files contain '-lgmp' without a corresponding -L entry,
breaking e.g. glib-networking and NetworkManager.
This commit is contained in:
Tuomas Tynkkynen 2015-10-17 23:53:54 +03:00 committed by Vladimír Čunát
parent ca2cb493fa
commit fb4c2eb438

View File

@ -46,7 +46,8 @@ stdenv.mkDerivation {
sed ${lib.optionalString tpmSupport "-e 's,-ltspi,-L${trousers}/lib -ltspi,'"} \
-e 's,-lz,-L${zlib.out}/lib -lz,' \
-e 's,-L${gmp.dev}/lib,-L${gmp.out}/lib,' \
-i "$out/lib/libgnutls.la" "$dev/lib/pkgconfig/gnutls.pc"
-e 's,-lgmp,-L${gmp.out}/lib -lgmp,' \
-i $out/lib/*.la "$dev/lib/pkgconfig/gnutls.pc"
'';
meta = with lib; {