]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/auto-arch/Makefile
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / auto-arch / Makefile
index 06ca6edbb378b186a6ad98c11947c48bd361071f..4382cc1018f28bc76f20138a8bbc192b5ac72a35 100644 (file)
@@ -25,8 +25,15 @@ include ${TESTROOT}/include/common.makefile
 
 ifeq ($(FILEARCH),arm)
        LD_VERS = -ios_version_min 4.0 -syslibroot $(IOS_SDK)
+       CC_VERS = -miphoneos-version-min=4.0
+else
+ifeq ($(FILEARCH),arm64)
+       LD_VERS = -ios_version_min 4.0 -syslibroot $(IOS_SDK)
+       CC_VERS = -miphoneos-version-min=4.0
 else
        LD_VERS = -macosx_version_min 10.6
+       CC_VERS = -mmacosx-version-min=10.6
+endif
 endif
 
 
@@ -37,7 +44,7 @@ endif
 run: all
 
 all:
-       ${CC} ${CCFLAGS} hello.c -c -o hello.o 
+       ${CC} ${CC_VERS} ${CCFLAGS} hello.c -c -o hello.o 
        ${FAIL_IF_BAD_OBJ} hello.o
        ${LD} ${LDFLAGS} hello.o -dylib -o hello.dylib -lSystem $(LD_VERS) 
        file hello.dylib | grep ${FILEARCH} | ${PASS_IFF_STDIN}