summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-26 17:44:38 +0000
committerChris Lattner <sabre@nondot.org>2009-02-26 17:44:38 +0000
commit843daf40b646d1eeeedc6f092d9c1c1d1e991d14 (patch)
tree1437eaea61548439c678720589bdbaa7999cfda0
parent3436ee3bd56b33a2ef9f9c9975cb105fe1a6daf1 (diff)
downloadllvm-843daf40b646d1eeeedc6f092d9c1c1d1e991d14.tar.gz
llvm-843daf40b646d1eeeedc6f092d9c1c1d1e991d14.tar.bz2
llvm-843daf40b646d1eeeedc6f092d9c1c1d1e991d14.tar.xz
pass -mmacosx-version-min to the compiler and linker, which makes the build
substantially happier on some versions of Mac OS/X. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65542 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.rules7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index f6b697e160..c9251e7e63 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -444,7 +444,10 @@ endif
endif
ifeq ($(OS),Darwin)
- SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -bundle
+ DARWIN_VERSION := `sw_vers -productVersion`
+ SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -bundle \
+ -mmacosx-version-min=$(DARWIN_VERSION)
+ CompileCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
else
SharedLinkOptions=-shared
endif
@@ -453,7 +456,7 @@ endif
# Options To Invoke Tools
#----------------------------------------------------------
-CompileCommonOpts := -pedantic -Wall -W -Wwrite-strings -Wno-long-long \
+CompileCommonOpts += -pedantic -Wall -W -Wwrite-strings -Wno-long-long \
-Wunused -Wno-unused-parameter $(EXTRA_OPTIONS)
ifeq ($(OS),HP-UX)