aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-09 04:45:03 +0000
committerChris Lattner <sabre@nondot.org>2009-03-09 04:45:03 +0000
commit086c788b3987161c123c0330e39bd591d6460fc9 (patch)
tree8471d9186b89e341a472c95ada83923af922ea66
parentf48ba7b74c94b4cf0d8c0b30856953e33ecf136d (diff)
Fix PR3743 - -mmacosx-version-min inappropriate for Mac OS X 10.4.11,
by stripping off any versions past the "10.4". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66392 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9b8a84f304..bf13b26200 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -467,6 +467,9 @@ endif
ifeq ($(OS),Darwin)
DARWIN_VERSION := `sw_vers -productVersion`
+ # Strip a number like 10.4.7 to 10.4
+ DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E 's/(10.[0-9]).*/\1/')
+
SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -bundle \
-mmacosx-version-min=$(DARWIN_VERSION)
CompileCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)