]> git.saurik.com Git - apple/dyld.git/blame - unit-tests/test-cases/dlopen-DYLD_FALLBACK_LIBRARY_PATH/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / dlopen-DYLD_FALLBACK_LIBRARY_PATH / Makefile
CommitLineData
39a8cd10
A
1TESTROOT = ../..
2include ${TESTROOT}/include/common.makefile
3
4PWD = $(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
12all-check: all check
13
14check:
15 export DYLD_FALLBACK_LIBRARY_PATH="${PWD}/hide" && ./main
16
17all: main hide/libfoo.dylib
18
19main : main.c hide/libfoo.dylib
20 ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c
21
22
23hide/libfoo.dylib : foo.c
24 mkdir -p hide
25 ${CC} ${CCFLAGS} -dynamiclib foo.c -o "${PWD}/hide/libfoo.dylib"
26
27
28
29clean:
30 ${RM} -rf *~ main hide
31