mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 05:30:31 -04:00
13 lines
671 B
Text
13 lines
671 B
Text
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)
|