[llvm-commits] [llvm] r66392 - /llvm/trunk/Makefile.rules
Chris Lattner
sabre at nondot.org
Sun Mar 8 21:45:04 PDT 2009
Author: lattner
Date: Sun Mar 8 23:45:03 2009
New Revision: 66392
URL: http://llvm.org/viewvc/llvm-project?rev=66392&view=rev
Log:
Fix PR3743 - -mmacosx-version-min inappropriate for Mac OS X 10.4.11,
by stripping off any versions past the "10.4".
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=66392&r1=66391&r2=66392&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Sun Mar 8 23:45:03 2009
@@ -467,6 +467,9 @@
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)
More information about the llvm-commits
mailing list