]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/lto-dead_strip-some-hidden/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lto-dead_strip-some-hidden / Makefile
index d563c92ea861eeeeb1e3793c81cadadc0c26bd9b..ad1fe8b610b851837aa2d5c59952fe4f426fc060 100644 (file)
@@ -27,14 +27,12 @@ include ${TESTROOT}/include/common.makefile
 # <rdar://problem/8481987> Link Time Optimization crashes linker with 'dead code strip' + hidden symbol
 #
 
-LLVMGCC = /Developer/usr/bin/llvm-gcc-4.2 -arch ${ARCH}
-LLVMGXX = /Developer/usr/bin/llvm-g++-4.2 -arch ${ARCH}
 
 run: all
 
 all:
-       ${LLVMGCC} ${CCFLAGS} --emit-llvm bar.c  -c -o bar.o -fvisibility=hidden
-       ${LLVMGCC} ${CCFLAGS} -dynamiclib bar.o -o libbar.dylib -dead_strip
+       ${CC} ${CCFLAGS} -flto bar.c  -c -o bar.o -fvisibility=hidden
+       ${CC} ${CCFLAGS} -dynamiclib bar.o -o libbar.dylib -dead_strip
        ${PASS_IFF_GOOD_MACHO} libbar.dylib
        
 clean: