try to fix macos linking

This commit is contained in:
Michele Balistreri 2021-10-06 14:36:55 +03:00 committed by Iuri Matias
parent 4aec7db317
commit 314bbc65c2
2 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,10 @@ $(NIM_STATUS_CLIENT): $(NIM_SOURCES) | $(DOTHERSIDE) $(STATUSGO) $(KEYCARDGO) $(
install_name_tool -change \ install_name_tool -change \
libstatus.dylib \ libstatus.dylib \
@rpath/libstatus.dylib \ @rpath/libstatus.dylib \
bin/nim_status_client && \
install_name_tool -change \
libkeycard.dylib \
@rpath/libkeycard.dylib \
bin/nim_status_client) || true) bin/nim_status_client) || true)
nim_status_client: $(NIM_STATUS_CLIENT) nim_status_client: $(NIM_STATUS_CLIENT)

View File

@ -16,6 +16,7 @@ if defined(macosx):
# note: macdeployqt rewrites rpath appropriately when building the .app bundle # note: macdeployqt rewrites rpath appropriately when building the .app bundle
switch("passL", "-rpath" & " " & getEnv("QT5_LIBDIR")) switch("passL", "-rpath" & " " & getEnv("QT5_LIBDIR"))
switch("passL", "-rpath" & " " & getEnv("STATUSGO_LIBDIR")) switch("passL", "-rpath" & " " & getEnv("STATUSGO_LIBDIR"))
switch("passL", "-rpath" & " " & getEnv("KEYCARDGO_LIBDIR"))
# statically link these libs # statically link these libs
switch("passL", "bottles/openssl@1.1/lib/libcrypto.a") switch("passL", "bottles/openssl@1.1/lib/libcrypto.a")
switch("passL", "bottles/openssl@1.1/lib/libssl.a") switch("passL", "bottles/openssl@1.1/lib/libssl.a")