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