summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-09-08 18:52:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-09-08 18:52:20 +0000
commita5e225ec19e2b9db35086de3e60437f19674488a (patch)
treefda2f5505db64f421037b7163d7570a8721e261b /Makefile.rules
parent275a6d66392c1752ba130aeeba11e257cd7a9c68 (diff)
downloadllvm-a5e225ec19e2b9db35086de3e60437f19674488a.tar.gz
llvm-a5e225ec19e2b9db35086de3e60437f19674488a.tar.bz2
llvm-a5e225ec19e2b9db35086de3e60437f19674488a.tar.xz
Do not specify -mmacosx-version-min if building for arm-apple-darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 5d1dc4b972..fca687cd89 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -514,7 +514,10 @@ ifeq ($(HOST_OS),Darwin)
DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]).*/\1/')
SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress \
- -dynamiclib -mmacosx-version-min=$(DARWIN_VERSION)
+ -dynamiclib
+ ifneq ($(ARCH),ARM)
+ SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION)
+ endif
else
ifeq ($(HOST_OS),Cygwin)
SharedLinkOptions=-shared -nostdlib -Wl,--export-all-symbols \
@@ -525,7 +528,9 @@ else
endif
ifeq ($(TARGET_OS),Darwin)
- TargetCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
+ ifneq ($(ARCH),ARM)
+ TargetCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
+ endif
endif
# Adjust LD.Flags depending on the kind of library that is to be built. Note