From 5ac928a126722c59805191812f1a9480bd2be285 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Wed, 5 Sep 2018 12:06:51 +0800 Subject: Add DYLD_LIBRARY_PATH to fix mac test_go failure --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6d8e5ce..6d3770c 100644 --- a/Makefile +++ b/Makefile @@ -89,9 +89,9 @@ sample_test: $(EXE_DIR)/bls_smpl.exe ifeq ($(OS),mac) MAC_GO_LDFLAGS="-ldflags=-s" endif -# PATH is for mingw, LD_RUN_PATH is for linux +# PATH is for mingw, LD_RUN_PATH is for linux, DYLD_LIBRARY_PATH is for mac test_go: ffi/go/bls/bls.go ffi/go/bls/bls_test.go $(BLS384_SLIB) - cd ffi/go/bls && env PATH=$$PATH:../../../lib LD_RUN_PATH="../../../lib" go test $(MAC_GO_LDFLAGS) . + cd ffi/go/bls && env PATH=$$PATH:../../../lib LD_RUN_PATH="../../../lib" DYLD_LIBRARY_PATH="../../../lib" go test $(MAC_GO_LDFLAGS) . EMCC_OPT=-I./include -I./src -I../cybozulib/include -I../mcl/include -I./ -Wall -Wextra EMCC_OPT+=-O3 -DNDEBUG -- cgit v1.2.3