X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/197008ea33f135c7c4f94a67a2f75a9df7b7771d..39a8cd101b922f08058746122efff58c14b57605:/unit-tests/test-cases/rpath-dlopen-in-dylib/Makefile?ds=sidebyside diff --git a/unit-tests/test-cases/rpath-dlopen-in-dylib/Makefile b/unit-tests/test-cases/rpath-dlopen-in-dylib/Makefile index d94f47d..f5ebbc7 100644 --- a/unit-tests/test-cases/rpath-dlopen-in-dylib/Makefile +++ b/unit-tests/test-cases/rpath-dlopen-in-dylib/Makefile @@ -23,6 +23,7 @@ TESTROOT = ../.. include ${TESTROOT}/include/common.makefile +PWD = $(shell pwd) # # a main executable linked with -rpath calls into a dylib which calls @@ -30,8 +31,9 @@ include ${TESTROOT}/include/common.makefile # find the dlopen path. # +all-check: all check -run: all +check: ./main all: main @@ -41,7 +43,7 @@ hide/hole/libfoo.dylib : foo.c ${CC} foo.c -dynamiclib -o hide/hole/libfoo.dylib -install_name @rpath/libfoo.dylib libbar.dylib : bar.c hide/hole/libfoo.dylib - ${CC} bar.c -dynamiclib -o libbar.dylib -I${TESTROOT}/include -Wl,-rpath -Wl,`pwd`/hide/hole + ${CC} bar.c -dynamiclib -o libbar.dylib -I${TESTROOT}/include -Wl,-rpath -Wl,${PWD}/hide/hole main : main.c libbar.dylib ${CC} -I${TESTROOT}/include main.c -o main libbar.dylib