From 314bbc65c22d05ee37c1a17240bc5c1981975631 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 6 Oct 2021 14:36:55 +0300 Subject: [PATCH] try to fix macos linking --- Makefile | 4 ++++ config.nims | 1 + 2 files changed, 5 insertions(+) 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")