about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/run-make/c-dynamic-dylib/Makefile5
1 files changed, 5 insertions, 0 deletions
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: