X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/60ce07c1e7dbeedd94a57ba21c14ff07c4ada4db..afe874b1634377ecb27057ee76deb04915bb34d7:/unit-tests/test-cases/lto-object_path/Makefile diff --git a/unit-tests/test-cases/lto-object_path/Makefile b/unit-tests/test-cases/lto-object_path/Makefile index aeda85d..180cfb3 100644 --- a/unit-tests/test-cases/lto-object_path/Makefile +++ b/unit-tests/test-cases/lto-object_path/Makefile @@ -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