From fb4c2eb4383a79cd0612feb59ec9b4614e97e74c Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 17 Oct 2015 23:53:54 +0300 Subject: [PATCH] gnutls: More hacks to .la files Some .la files contain '-lgmp' without a corresponding -L entry, breaking e.g. glib-networking and NetworkManager. --- pkgs/development/libraries/gnutls/generic.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gnutls/generic.nix b/pkgs/development/libraries/gnutls/generic.nix index 7b0d14b68353..cf1e0f9d578c 100644 --- a/pkgs/development/libraries/gnutls/generic.nix +++ b/pkgs/development/libraries/gnutls/generic.nix @@ -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; {