diff --git a/src/test/run-make/c-dynamic-dylib/Makefile b/src/test/run-make/c-dynamic-dylib/Makefile index 2b2e5d56e92..940797c85c4 100644 --- a/src/test/run-make/c-dynamic-dylib/Makefile +++ b/src/test/run-make/c-dynamic-dylib/Makefile @@ -1,5 +1,10 @@ -include ../tools.mk +# needed so that libfoo can find libcfoo +ifeq ($(shell uname),Linux) +export LD_LIBRARY_PATH := $(TMPDIR) +endif + # This hits an assertion in the linker on older versions of osx apparently ifeq ($(shell uname),Darwin) all: