X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/a61fdf0a731e23ff7eb0cc86ba748fd9af5de879..a645023da60d22e86be13f7b4d97adeff8bc6665:/unit-tests/test-cases/rebase-basic/Makefile diff --git a/unit-tests/test-cases/rebase-basic/Makefile b/unit-tests/test-cases/rebase-basic/Makefile index 77bdf6b..cc7407b 100644 --- a/unit-tests/test-cases/rebase-basic/Makefile +++ b/unit-tests/test-cases/rebase-basic/Makefile @@ -1,5 +1,5 @@ ## -# Copyright (c) 2006 Apple Computer, Inc. All rights reserved. +# Copyright (c) 2006-2010 Apple Inc. All rights reserved. # # @APPLE_LICENSE_HEADER_START@ # @@ -32,22 +32,22 @@ include ${TESTROOT}/include/common.makefile run: all all: - ${CC} -c foo.c -o foo.${ARCH}.o + ${CC} ${CCFLAGS} -c -g foo.c -o foo.${ARCH}.o ${FAIL_IF_BAD_OBJ} foo.${ARCH}.o - ${CC} -c bar.m -o bar.${ARCH}.o + ${CC} ${CCFLAGS} -c -g bar.m -o bar.${ARCH}.o ${FAIL_IF_BAD_OBJ} bar.${ARCH}.o - ${CC} foo.${ARCH}.o bar.${ARCH}.o -dynamiclib -o libfoo.${ARCH}.dylib -framework Foundation -single_module -mmacosx-version-min=10.5 + ${CC} ${CCFLAGS} foo.${ARCH}.o bar.${ARCH}.o -dynamiclib -Wl,-no_uuid -Wl,-no_order_data -o libfoo.${ARCH}.dylib -framework Foundation -framework CoreFoundation ${FAIL_IF_BAD_MACHO} libfoo.${ARCH}.dylib - ${CC} foo.${ARCH}.o bar.${ARCH}.o -dynamiclib -o libfoo-alt.${ARCH}.dylib -framework Foundation -single_module -mmacosx-version-min=10.5 -seg1addr 0x12340000 -install_name libfoo.${ARCH}.dylib + ${CC} ${CCFLAGS} foo.${ARCH}.o bar.${ARCH}.o -dynamiclib -Wl,-no_uuid -Wl,-no_order_data -o libfoo-alt.${ARCH}.dylib -framework Foundation -framework CoreFoundation -seg1addr 0x12340000 -install_name libfoo.${ARCH}.dylib ${FAIL_IF_BAD_MACHO} libfoo-alt.${ARCH}.dylib - - rebase -arch ${ARCH} -low_address 0x12340000 libfoo.${ARCH}.dylib + + ${REBASE} -arch ${ARCH} -low_address 0x12340000 libfoo.${ARCH}.dylib ${FAIL_IF_BAD_MACHO} libfoo.${ARCH}.dylib ${PASS_IFF} diff libfoo.${ARCH}.dylib libfoo-alt.${ARCH}.dylib clean: - rm *.o *.dylib + rm -f *.o *.dylib