]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/rebase-basic/Makefile
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / rebase-basic / Makefile
index ba262aa4d2b7e9d7ccf282c32df7c629bd41d222..cc7407b065f59e27540a220341d91c3efe2a8ff1 100644 (file)
@@ -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} ${CCFLAGS} -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} ${CCFLAGS} -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} ${CCFLAGS} foo.${ARCH}.o bar.${ARCH}.o -dynamiclib -Wl,-no_uuid -o libfoo.${ARCH}.dylib -framework Foundation  -framework CoreFoundation 
+       ${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} ${CCFLAGS} foo.${ARCH}.o bar.${ARCH}.o -dynamiclib -Wl,-no_uuid -o libfoo-alt.${ARCH}.dylib -framework Foundation -framework CoreFoundation  -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