3 include ${TESTROOT}/include/common.makefile
6 # Test a simple symbol resolver function
17 ${CC} ${CCFLAGS} foo.c -c -o foo.o
18 ${CC} ${CCFLAGS} foo.o -dynamiclib -o libfoo.dylib
19 ${DYLDINFO} -export libfoo.dylib | grep _foo | grep resolver | ${FAIL_IF_EMPTY}
20 ${LD} -arch ${ARCH} -r foo.o -o foo-r.o
21 ${CC} ${CCFLAGS} foo-r.o -dynamiclib -o libfoo-r.dylib
22 ${DYLDINFO} -export libfoo-r.dylib | grep _foo | grep resolver | ${FAIL_IF_EMPTY}
23 ${PASS_IFF_GOOD_MACHO} libfoo-r.dylib
29 rm -f foo.o libfoo.dylib foo-r.o libfoo-r.dylib