From 5a0fd2d76272b7a5df874b56f297fec6e1a29f4e Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 10 Sep 2021 16:48:25 -0400 Subject: [PATCH] use passL in makefile so it works on macs (#19) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c8f4e3b..9dc2191 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ $(STATUSGO): | deps libstatuslib: | $(STATUSGO) echo -e $(BUILD_MSG) "$@" && \ - $(ENV_SCRIPT) nim c $(NIM_PARAMS) $(NIM_EXTRA_PARAMS) -o:build/$@.$(LIBSTATUS_EXT).0 -d:ssl --app:lib --noMain --header --nimcache:nimcache/libstatuslib statuslib.nim && \ + $(ENV_SCRIPT) nim c $(NIM_PARAMS) $(NIM_EXTRA_PARAMS) --passL:"-L$(STATUSGO_LIBDIR)" --passL:"-lstatus" -o:build/$@.$(LIBSTATUS_EXT).0 -d:ssl --app:lib --noMain --header --nimcache:nimcache/libstatuslib statuslib.nim && \ rm -f build/$@.$(LIBSTATUS_EXT) && \ ln -s $@.$(LIBSTATUS_EXT).0 build/$@.so && \ cp nimcache/libstatuslib/*.h build/. && \