Skip to content

Commit 9a404e0

Browse files
committed
Fix macOS OpenSSL library rpath
Prevented loading on some setups.
1 parent d9ddb8a commit 9a404e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-macos.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ install_name_tool -change /usr/local/Cellar/openssl@3/3.3.1/lib/libcrypto.3.dyli
9191
install_name_tool -change /usr/local/opt/openssl@3/lib/libssl.3.dylib @loader_path/../Frameworks/libssl.3.dylib ./libssl.3.dylib
9292

9393
install_name_tool -change /usr/local/Cellar/openssl@3/3.3.1/lib/libcrypto.3.dylib @loader_path/../Frameworks/libcrypto.3.dylib ./libcrypto.3.dylib
94+
install_name_tool -id "@rpath/libssl.3.dylib" libssl.3.dylib
95+
install_name_tool -id "@rpath/libcrypto.3.dylib" libcrypto.3.dylib
9496

9597
codesign -v -f -s "${DEVELOPER_ID_APPLICATION}" libssl.3.dylib
9698
codesign -v -f -s "${DEVELOPER_ID_APPLICATION}" libcrypto.3.dylib

0 commit comments

Comments
 (0)