unbound: also replace -R in libunbound.la

This was increasing closure sizes as well.
This commit is contained in:
Matthew Bauer 2018-06-09 12:56:53 -04:00
parent f523dc9025
commit e93a8cba4a

View file

@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
# get rid of runtime dependencies on $dev outputs
+ ''substituteInPlace "$lib/lib/libunbound.la" ''
+ stdenv.lib.concatMapStrings
(pkg: " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' ")
(pkg: " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' --replace '-R${pkg.dev}/lib' '-R${pkg.out}/lib'")
buildInputs;
meta = with stdenv.lib; {