X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/60ce07c1e7dbeedd94a57ba21c14ff07c4ada4db..afe874b1634377ecb27057ee76deb04915bb34d7:/unit-tests/test-cases/lto-dead_strip-some-hidden/Makefile diff --git a/unit-tests/test-cases/lto-dead_strip-some-hidden/Makefile b/unit-tests/test-cases/lto-dead_strip-some-hidden/Makefile index d563c92..ad1fe8b 100644 --- a/unit-tests/test-cases/lto-dead_strip-some-hidden/Makefile +++ b/unit-tests/test-cases/lto-dead_strip-some-hidden/Makefile @@ -27,14 +27,12 @@ include ${TESTROOT}/include/common.makefile # 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: