X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/60ce07c1e7dbeedd94a57ba21c14ff07c4ada4db..afe874b1634377ecb27057ee76deb04915bb34d7:/unit-tests/test-cases/lto-weak-native-override/Makefile diff --git a/unit-tests/test-cases/lto-weak-native-override/Makefile b/unit-tests/test-cases/lto-weak-native-override/Makefile index 55ac0f1..2be86f3 100644 --- a/unit-tests/test-cases/lto-weak-native-override/Makefile +++ b/unit-tests/test-cases/lto-weak-native-override/Makefile @@ -28,15 +28,12 @@ include ${TESTROOT}/include/common.makefile # and mach-o has a strong _foo. # -LLVMGCC = /Developer/usr/bin/llvm-gcc-4.2 -arch ${ARCH} -LLVMGXX = /Developer/usr/bin/llvm-g++-4.2 -arch ${ARCH} - run: all all: ${CC} ${CCFLAGS} foo.c -c -o foo.o - ${LLVMGCC} ${CCFLAGS} --emit-llvm main.c -c -o main.o - ${LLVMGCC} ${CCFLAGS} main.o foo.o -o main + ${CC} ${CCFLAGS} -flto main.c -c -o main.o + ${CC} ${CCFLAGS} main.o foo.o -o main otool -Iv main | grep _abort | ${FAIL_IF_STDIN} ${PASS_IFF_GOOD_MACHO} main