]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/data-in-code/Makefile
ld64-224.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / data-in-code / Makefile
index 0897726e45e5baa95b9c3a5a632168cfa13de79c..b1e7fd5be2a61d03a56e8a9c0a6eaa73767a7435 100644 (file)
@@ -29,9 +29,12 @@ include ${TESTROOT}/include/common.makefile
 
 all: 
        ${CC} ${CCFLAGS} -c test.s -o test.o
+       ${CC} ${CCFLAGS} test.o -dynamiclib -o libtest.dylib
+       dyldinfo -arch ${ARCH} -data_in_code libtest.dylib| ${FAIL_IF_EMPTY}
        ${LD} -r -arch ${ARCH} test.o -o test2.o
-       #nm main | grep _dtrace_probe | ${FAIL_IF_EMPTY}
-       #${PASS_IFF_GOOD_MACHO} main
+       ${CC} ${CCFLAGS} test2.o -dynamiclib -o libtest2.dylib
+       dyldinfo -arch ${ARCH} -data_in_code libtest2.dylib| ${FAIL_IF_EMPTY}
+       ${PASS_IFF_GOOD_MACHO} libtest.dylib
        
 clean:
-       rm -rf test.o test2.o
+       rm -rf test.o test2.o libtest.dylib libtest2.dylib