re2: fix dylib library id

This commit is contained in:
Daiderd Jordan 2017-09-09 15:09:19 +02:00
parent b5163bc937
commit 6058539272
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
preConfigure = '' preConfigure = ''
substituteInPlace Makefile --replace "/usr/local" "$out" substituteInPlace Makefile --replace "/usr/local" "$out"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
# Fixed in https://github.com/google/re2/commit/b2c9765b4a7afbea8b6be1dae548b6f4d5f39e42
substituteInPlace Makefile \
--replace '-dynamiclib' '-dynamiclib -Wl,-install_name,$(libdir)/libre2.so.$(SONAME)'
''; '';
meta = { meta = {