From 26c3d3f06062259bc8ce39f7b022cc8a254d56ff Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 18 Sep 2015 14:52:20 -0700 Subject: [PATCH] ceph: Fix .la files --- pkgs/tools/filesystems/ceph/generic.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/tools/filesystems/ceph/generic.nix b/pkgs/tools/filesystems/ceph/generic.nix index d63937f7fbf..cfc020b107d 100644 --- a/pkgs/tools/filesystems/ceph/generic.nix +++ b/pkgs/tools/filesystems/ceph/generic.nix @@ -260,6 +260,17 @@ stdenv.mkDerivation { test -f "$PY"c test -f "$PY"o done + + # Fix .la file link dependencies + find "$lib/lib" -name \*.la | xargs sed -i \ + -e 's,-lboost_[a-z]*,-L${boost.lib}/lib \0,g' \ + '' + optionalString (cryptoStr == "cryptopp") '' + -e 's,-lcryptopp,-L${optCryptopp}/lib \0,g' \ + '' + optionalString (cryptoStr == "nss") '' + -e 's,-l\(plds4\|plc4\|nspr4\),-L${optNss}/lib \0,g' \ + -e 's,-l\(ssl3\|smime3\|nss3\|nssutil3\),-L${optNspr}/lib \0,g' \ + '' + '' + ''; enableParallelBuilding = true;