diff --git a/config.nims b/config.nims new file mode 100644 index 0000000..8d021a4 --- /dev/null +++ b/config.nims @@ -0,0 +1,7 @@ +if defined(macosx): + switch("passL", "-rpath " & getEnv("STATUSGO_LIBDIR")) + if hostCPU == "arm64": # Crosscompiling to amd64 since arm64 is not supported + switch("cpu", "amd64") + switch("os", "MacOSX") + switch("passL", "-arch x86_64") + switch("passC", "-arch x86_64") diff --git a/nim_status_lib.nimble b/nim_status_lib.nimble index 69a705b..453c748 100644 --- a/nim_status_lib.nimble +++ b/nim_status_lib.nimble @@ -43,9 +43,6 @@ proc buildAndRun(name: string, " --out:" & outDir & name & " " & srcDir & name & ".nim" - if defined(macosx): - exec "install_name_tool -add_rpath " & getEnv("STATUSGO_LIBDIR") & " " & outDir & name - exec "install_name_tool -change " & "libstatus." & getEnv("LIBSTATUS_EXT") & " @rpath/libstatus." & getEnv("LIBSTATUS_EXT") & " " & outDir & name if getEnv("RUN_AFTER_BUILD").strip != "false": exec outDir & name diff --git a/vendor/status-go b/vendor/status-go index cee18ef..607507d 160000 --- a/vendor/status-go +++ b/vendor/status-go @@ -1 +1 @@ -Subproject commit cee18efd710756c662c19ea9b167a47112847388 +Subproject commit 607507d20ae9e76e05bae7ec176dd41aca86e732