git.iko.soy/typeable/nixpkgs
on master help sign in
openldap: do strip, with proper fix

[dezgeg: Add comment about the proper fix in patchelf]

commit63ab4ebf8d07e586b3317fc6d47aeae3a27a8d9a authorGuillaume Maudoux <layus.on@gmail.com> dateTue 30 Aug 2016, 23:29 (10 years ago) parent204f19e
1 file changed+6−3
pkgs/development/libraries/openldap/default.nix+6−3
pkgs/development/libraries/openldap/default.nix+6−3
@@ -20,13 +20,16 @@ stdenv.mkDerivation rec {
2020 ++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
2121 ++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
2222
23− dontPatchELF = 1; # !!!
24−
25− # Fixup broken libtool
23+ # 1. Fixup broken libtool
24+ # 2. Libraries left in the build location confuse `patchelf --shrink-rpath`
25+ # Delete these to let patchelf discover the right path instead.
26+ # FIXME: that one can be removed when https://github.com/NixOS/patchelf/pull/98
27+ # is in Nixpkgs patchelf.
2628 preFixup = ''
2729 sed -e 's,-lsasl2,-L${cyrus_sasl.out}/lib -lsasl2,' \
2830 -e 's,-lssl,-L${openssl.out}/lib -lssl,' \
2931 -i $out/lib/libldap.la -i $out/lib/libldap_r.la
32+ rm -r libraries/*/.libs
3033 '';
3134
3235 meta = with stdenv.lib; {