X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/d696c285d331ab577dcabd00419d8c30336673da..e456bf1059cf7e6b8b71545d1b2f2092b55a9684:/unit-tests/test-cases/archive-basic/Makefile?ds=sidebyside diff --git a/unit-tests/test-cases/archive-basic/Makefile b/unit-tests/test-cases/archive-basic/Makefile index 721cf2a..65c5f56 100644 --- a/unit-tests/test-cases/archive-basic/Makefile +++ b/unit-tests/test-cases/archive-basic/Makefile @@ -32,15 +32,15 @@ run: all all: ${CC} ${CCFLAGS} foo.c -c -o foo-${ARCH}.o + ${FAIL_IF_BAD_OBJ} foo-${ARCH}.o ${CC} ${CCFLAGS} bar.c -c -o bar-${ARCH}.o + ${FAIL_IF_BAD_OBJ} bar-${ARCH}.o libtool -static foo-${ARCH}.o bar-${ARCH}.o -o libfoobar-${ARCH}.a ${CC} ${CCFLAGS} main.c -lfoobar-${ARCH} -L. -o main-${ARCH} ${FAIL_IF_BAD_MACHO} main-${ARCH} nm main-${ARCH} | grep "_bar" | ${PASS_IFF_EMPTY} - ${CC} ${CCFLAGS} main.c -all_load -lfoobar-${ARCH} -L. -o main-${ARCH} + ${CC} ${CCFLAGS} main.c -Wl,-force_load,libfoobar-${ARCH}.a -o main-${ARCH} ${FAIL_IF_BAD_MACHO} main-${ARCH} clean: - rm -rf main-${ARCH} foo-${ARCH}.o bar-${ARCH}.o libfoobar-${ARCH}.a - - + rm -rf main-* *.o *.a