summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2010-03-18 21:33:10 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2010-03-18 21:33:10 +0000
commitc59b6324bec507dff7b709e38b23a570c1a80307 (patch)
treed6ded29a04e7087e62d090c331150c25815a5e76 /sys-devel/clang/files
parentFix curl dependencies. (diff)
downloadgentoo-2-c59b6324bec507dff7b709e38b23a570c1a80307.tar.gz
gentoo-2-c59b6324bec507dff7b709e38b23a570c1a80307.tar.bz2
gentoo-2-c59b6324bec507dff7b709e38b23a570c1a80307.zip
Remove forced -O3 -fomit-frame-pointer CFLAGS, bug #308145
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel/clang/files')
-rw-r--r--sys-devel/clang/files/llvm-2.6-cflags.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/sys-devel/clang/files/llvm-2.6-cflags.patch b/sys-devel/clang/files/llvm-2.6-cflags.patch
new file mode 100644
index 000000000000..fbc09657917f
--- /dev/null
+++ b/sys-devel/clang/files/llvm-2.6-cflags.patch
@@ -0,0 +1,37 @@
+--- Makefile.rules.orig 2010-03-18 18:12:25.000000000 +0100
++++ Makefile.rules 2010-03-18 18:15:56.000000000 +0100
+@@ -284,24 +284,9 @@
+ #--------------------------------------------------------------------
+
+ CPP.Defines :=
+-# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with
+-# this can be overridden on the make command line.
+-ifndef OPTIMIZE_OPTION
+- ifneq ($(HOST_OS),MingW)
+- OPTIMIZE_OPTION := -O3
+- else
+- OPTIMIZE_OPTION := -O2
+- endif
+-endif
+
+ ifeq ($(ENABLE_OPTIMIZED),1)
+ BuildMode := Release
+- # Don't use -fomit-frame-pointer on Darwin or FreeBSD.
+- ifneq ($(HOST_OS),FreeBSD)
+- ifneq ($(HOST_OS),Darwin)
+- OmitFramePointer := -fomit-frame-pointer
+- endif
+- endif
+
+ # Darwin requires -fstrict-aliasing to be explicitly enabled.
+ # Avoid -fstrict-aliasing on Darwin for now, there are unresolved issues
+@@ -309,9 +294,6 @@
+ #ifeq ($(HOST_OS),Darwin)
+ # EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
+ #endif
+- CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
+- C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
+- LD.Flags += $(OPTIMIZE_OPTION)
+ else
+ BuildMode := Debug
+ CXX.Flags += -g