diff --git a/tests/compiler/foreign/Makefile b/tests/compiler/foreign/Makefile index 69e18984c3..b606c43c70 100644 --- a/tests/compiler/foreign/Makefile +++ b/tests/compiler/foreign/Makefile @@ -18,7 +18,7 @@ ifeq ($(OS),Windows_NT) export PATH := $(BIN_OUT):$(PATH) else # find libleanshared.so - TEST_SHARED_LINK_FLAGS := -rpath `lean --print-prefix`/lib/lean + TEST_SHARED_LINK_FLAGS := -Wl,-rpath,`lean --print-prefix`/lib/lean endif $(BIN_OUT)/testcpp.so: $(CPP_OBJS) | $(BIN_OUT)