X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/39a8cd101b922f08058746122efff58c14b57605..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/pie-text-reloc/Makefile diff --git a/unit-tests/test-cases/pie-text-reloc/Makefile b/unit-tests/test-cases/pie-text-reloc/Makefile index 497174e..31d75d6 100644 --- a/unit-tests/test-cases/pie-text-reloc/Makefile +++ b/unit-tests/test-cases/pie-text-reloc/Makefile @@ -1,5 +1,5 @@ ## -# Copyright (c) 2007-2008 Apple Inc. All rights reserved. +# Copyright (c) 2007-2009 Apple Inc. All rights reserved. # # @APPLE_LICENSE_HEADER_START@ # @@ -29,6 +29,10 @@ ifeq "x86_64" "$(ARCH)" EXTRA_OPTIONS = endif +ifeq "iPhoneOS" "$(OS_NAME)" + EXTRA_OPTIONS = +endif + # run a PIE four times and verify its load address was different every time @@ -41,15 +45,15 @@ check: ./main >> main.out if [ `sort main.out -u | wc -l` == 4 ]; \ then \ - echo "PASS pie-basic"; \ + echo "PASS pie-text-reloc"; \ else \ - echo "FAIL pie-basic"; \ + echo "FAIL pie-text-reloc"; \ fi; \ all: main main : main.c - ${CC} ${CCFLAGS} -I${TESTROOT}/include -Wl,-pie $(EXTRA_OPTIONS) -o main main.c -mmacosx-version-min=10.5 + ${CC} ${CCFLAGS} -I${TESTROOT}/include -Wl,-pie $(EXTRA_OPTIONS) -o main main.c clean: