X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/60ce07c1e7dbeedd94a57ba21c14ff07c4ada4db..afe874b1634377ecb27057ee76deb04915bb34d7:/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 3b1cc7c..06ca6ed 100644 --- a/unit-tests/test-cases/auto-arch/Makefile +++ b/unit-tests/test-cases/auto-arch/Makefile @@ -23,6 +23,12 @@ TESTROOT = ../.. include ${TESTROOT}/include/common.makefile +ifeq ($(FILEARCH),arm) + LD_VERS = -ios_version_min 4.0 -syslibroot $(IOS_SDK) +else + LD_VERS = -macosx_version_min 10.6 +endif + # # Check that ld can figure out architecture from .o files without -arch option @@ -33,8 +39,8 @@ run: all all: ${CC} ${CCFLAGS} hello.c -c -o hello.o ${FAIL_IF_BAD_OBJ} hello.o - ${LD} ${LDFLAGS} -lcrt1.o hello.o -o hello -lSystem - file hello | grep ${FILEARCH} | ${PASS_IFF_STDIN} + ${LD} ${LDFLAGS} hello.o -dylib -o hello.dylib -lSystem $(LD_VERS) + file hello.dylib | grep ${FILEARCH} | ${PASS_IFF_STDIN} clean: - rm -rf hello.o hello + rm -rf hello.o hello.dylib