diff --git a/Makefile b/Makefile index 690360a3b..4748b2ad7 100644 --- a/Makefile +++ b/Makefile @@ -321,6 +321,10 @@ $(NIM_STATUS_CLIENT): $(NIM_SOURCES) | $(DOTHERSIDE) $(STATUSGO) $(KEYCARDGO) $( install_name_tool -change \ libstatus.dylib \ @rpath/libstatus.dylib \ + bin/nim_status_client && \ + install_name_tool -change \ + libkeycard.dylib \ + @rpath/libkeycard.dylib \ bin/nim_status_client) || true) nim_status_client: $(NIM_STATUS_CLIENT) diff --git a/config.nims b/config.nims index e7086cb17..7c9ead325 100644 --- a/config.nims +++ b/config.nims @@ -16,6 +16,7 @@ if defined(macosx): # note: macdeployqt rewrites rpath appropriately when building the .app bundle switch("passL", "-rpath" & " " & getEnv("QT5_LIBDIR")) switch("passL", "-rpath" & " " & getEnv("STATUSGO_LIBDIR")) + switch("passL", "-rpath" & " " & getEnv("KEYCARDGO_LIBDIR")) # statically link these libs switch("passL", "bottles/openssl@1.1/lib/libcrypto.a") switch("passL", "bottles/openssl@1.1/lib/libssl.a")