]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/lto-object_path/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lto-object_path / Makefile
index aeda85d07d017087b724fb901a8c4cb3f25d94d2..180cfb39b77842fcb71be8d66ebc8d7c442fe638 100644 (file)
@@ -28,13 +28,12 @@ include ${TESTROOT}/include/common.makefile
 # being produced.
 #
 
-LLVMGCC = /Developer/usr/bin/llvm-gcc-4.2 -arch ${ARCH}
 
 run: all
 
 all:
-       ${LLVMGCC} ${CCFLAGS} --emit-llvm main.c -c -o main.o -fvisibility=hidden
-       ${LLVMGCC} ${CCFLAGS} main.o -o main -Wl,-object_path_lto,`pwd`/main.tmp.o
+       ${CC} ${CCFLAGS} -flto main.c -c -o main.o -fvisibility=hidden
+       ${CC} ${CCFLAGS} main.o -o main -Wl,-object_path_lto,`pwd`/main.tmp.o
        nm main.tmp.o | grep _main | ${FAIL_IF_EMPTY}
        ${PASS_IFF_GOOD_MACHO} main