From 24c560a69fc0f075dc55aef191ed35e548082f17 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Wed, 22 Jan 2014 23:49:36 -0500 Subject: [PATCH] Set LD_LIBRARY_PATH on linux for c-dynamic-dylib test Else, libfoo can't find libcfoo.so. bar has an rpath, which lets it find libfoo. But libfoo doesn't have an rapth that tells it where to find libcfoo --- src/test/run-make/c-dynamic-dylib/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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: