Skip to content

Commit 6058539

Browse files
committedSep 9, 2017
re2: fix dylib library id
1 parent b5163bc commit 6058539

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎pkgs/development/libraries/re2/default.nix

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
1111

1212
preConfigure = ''
1313
substituteInPlace Makefile --replace "/usr/local" "$out"
14+
'' + stdenv.lib.optionalString stdenv.isDarwin ''
15+
# Fixed in https://github.com/google/re2/commit/b2c9765b4a7afbea8b6be1dae548b6f4d5f39e42
16+
substituteInPlace Makefile \
17+
--replace '-dynamiclib' '-dynamiclib -Wl,-install_name,$(libdir)/libre2.so.$(SONAME)'
1418
'';
1519

1620
meta = {

0 commit comments

Comments
 (0)