]>
Commit | Line | Data |
---|---|---|
39a8cd10 A |
1 | |
2 | TESTROOT = ../.. | |
3 | include ${TESTROOT}/include/common.makefile | |
4 | ||
5 | ||
6 | # | |
7 | # <rdar://problem/5869973> DYLD_ROOT_PATH should apply to LC_RPATH rpaths | |
8 | # | |
9 | ||
10 | all-check: all check | |
11 | ||
12 | check: | |
13 | export DYLD_ROOT_PATH=`pwd` && ${PASS_IFF} ./main | |
14 | ||
15 | all: main | |
16 | ||
17 | ||
18 | hide/libfoo.dylib : foo.c | |
19 | mkdir -p hide | |
20 | ${CC} foo.c -dynamiclib -o hide/libfoo.dylib -install_name @rpath/libfoo.dylib | |
21 | ||
22 | ||
23 | main : main.c hide/libfoo.dylib | |
24 | ${CC} -I${TESTROOT}/include main.c -o main hide/libfoo.dylib -Wl,-rpath -Wl,/hide | |
25 | ||
26 | ||
27 | clean: | |
28 | ${RM} ${RMFLAGS} *~ main hide |