summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali <kali@leap.se>2017-08-08 13:47:34 -0700
committerKali Kaneko <kali@leap.se>2017-08-14 18:10:41 -0400
commitde7d7f9dbb11eefe03c33ee62b307d784be8d44c (patch)
treeeab36b03186757aec6da4f106d1c8d2ad8a852ed
parent6acf5ddfaf8e091f6b05b814128ac4f38b19c191 (diff)
[pkg] fix osx bundle by relinking broken _scrypt dylib
-rw-r--r--pkg/bundles/build.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/bundles/build.mk b/pkg/bundles/build.mk
index 0db7f3a1..8c7f7fbb 100644
--- a/pkg/bundles/build.mk
+++ b/pkg/bundles/build.mk
@@ -54,6 +54,8 @@ bundle_osx_helpers:
cp -r pkg/osx/openvpn $(DIST_VERSION)/apps/helpers/
bundle_osx_missing:
+ # relink _scrypt, it's linked against brew openssl!
+ install_name_tool -change /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib "@loader_path/libcrypto.1.0.0.dylib" $(DIST_VERSION)/lib/_scrypt.so
cp $(DIST_VERSION)/lib/_scrypt.so $(OSX_CON)/
cp $(DIST_VERSION)/lib/bitmaskd.tac $(OSX_CON)/
cp $(DIST_VERSION)/lib/version $(OSX_CON)/