]>
Commit | Line | Data |
---|---|---|
39a8cd10 A |
1 | TESTROOT = ../.. |
2 | include ${TESTROOT}/include/common.makefile | |
3 | ||
4 | PWD = $(shell pwd) | |
5 | ||
6 | # | |
7 | # Test that DYLD_FALLBACK_LIBRARY_PATH does not apply to dlopen() of a full path | |
8 | # <rdar://problem/5951327> DYLD_FALLBACK_LIBRARY_PATH man page misleading | |
9 | # | |
10 | ||
11 | ||
12 | all-check: all check | |
13 | ||
14 | check: | |
15 | export DYLD_FALLBACK_LIBRARY_PATH="${PWD}/hide" && ./main | |
16 | ||
17 | all: main hide/libfoo.dylib | |
18 | ||
19 | main : main.c hide/libfoo.dylib | |
20 | ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c | |
21 | ||
22 | ||
23 | hide/libfoo.dylib : foo.c | |
24 | mkdir -p hide | |
25 | ${CC} ${CCFLAGS} -dynamiclib foo.c -o "${PWD}/hide/libfoo.dylib" | |
26 | ||
27 | ||
28 | ||
29 | clean: | |
30 | ${RM} -rf *~ main hide | |
31 |