summaryrefslogtreecommitdiff
path: root/devel/avr-gcc-42/files/patch-bug25672
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2009-06-17 19:33:59 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2009-06-17 19:33:59 +0000
commit48c342e22472128049c9e278e4e6d3a578e0d477 (patch)
tree14caaf1cb3df899f71160f8432e023d6855334ec /devel/avr-gcc-42/files/patch-bug25672
parent- Ensure Fortran shim is not built if USE_FORTRAN is not set. (diff)
After upgrading devel/avr-gcc to GCC 4.3.x, keep a GCC 4.2.x version
here as it frequently produces more compact code (but supports less target MCU types).
Notes
Notes: svn path=/head/; revision=236158
Diffstat (limited to 'devel/avr-gcc-42/files/patch-bug25672')
-rw-r--r--devel/avr-gcc-42/files/patch-bug2567213
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/avr-gcc-42/files/patch-bug25672 b/devel/avr-gcc-42/files/patch-bug25672
new file mode 100644
index 000000000000..09fa118994db
--- /dev/null
+++ b/devel/avr-gcc-42/files/patch-bug25672
@@ -0,0 +1,13 @@
+http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25672
+
+--- Makefile.in.orig Thu Dec 15 19:02:02 2005
++++ Makefile.in Thu Apr 27 03:58:59 2006
+@@ -329,7 +329,7 @@
+ # CFLAGS will be just -g. We want to ensure that TARGET libraries
+ # (which we know are built with gcc) are built with optimizations so
+ # prepend -O2 when setting CFLAGS_FOR_TARGET.
+-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
++CFLAGS_FOR_TARGET = -O2 $(filter-out -march=% -mcpu=%,$(CFLAGS)) $(SYSROOT_CFLAGS_FOR_TARGET)
+ SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
+ CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+ LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)