X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/74cfe461234fcf76aadb30ed686f281f06b555cd..a61fdf0a731e23ff7eb0cc86ba748fd9af5de879:/unit-tests/test-cases/auto-arch/Makefile diff --git a/unit-tests/test-cases/auto-arch/Makefile b/unit-tests/test-cases/auto-arch/Makefile index e5caa64..3c8b3e5 100644 --- a/unit-tests/test-cases/auto-arch/Makefile +++ b/unit-tests/test-cases/auto-arch/Makefile @@ -35,11 +35,10 @@ run: all all: ${CC} ${CCFLAGS} hello.c -c -o hello.o -mmacosx-version-min=10.4 - ${LD} -lcrt1.o hello.o -o hello -lSystem 2> fail.log - ${FAIL_IF_BAD_MACHO} hello - file hello | grep ${ARCH} | ${PASS_IFF_STDIN} + ${FAIL_IF_BAD_OBJ} hello.o + ${LD} -r -lcrt1.o hello.o -o hello-r.o -lSystem + ${FAIL_IF_ERROR} ${OBJECTDUMP} hello-r.o >/dev/null + file hello-r.o | grep ${ARCH} | ${PASS_IFF_STDIN} clean: - rm hello.o hello fail.log - - + rm -rf *.o