Skip to content

Commit 24c560a

Browse files
committed
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
1 parent fce7922 commit 24c560a

File tree

1 file changed

+5
-0
lines changed
  • src/test/run-make/c-dynamic-dylib

1 file changed

+5
-0
lines changed

src/test/run-make/c-dynamic-dylib/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
-include ../tools.mk
22

3+
# needed so that libfoo can find libcfoo
4+
ifeq ($(shell uname),Linux)
5+
export LD_LIBRARY_PATH := $(TMPDIR)
6+
endif
7+
38
# This hits an assertion in the linker on older versions of osx apparently
49
ifeq ($(shell uname),Darwin)
510
all:

0 commit comments

Comments
 (0)