--- a/components/gcc49/Makefile Mon Jan 04 01:34:17 2016 -0800
+++ b/components/gcc49/Makefile Mon Jan 04 10:28:20 2016 -0800
@@ -177,6 +177,7 @@
endif
CONFIGURE_OPTIONS += --with-build-time-tools=/usr/gnu/bin
+CONFIGURE_OPTIONS += --with-build-config=bootstrap-O2
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gcc49/patches/028-bootstrap-O2.patch Mon Jan 04 10:28:20 2016 -0800
@@ -0,0 +1,9 @@
+# Stefan Teleman <[email protected]>
+# Avoid build errors on Solaris because of -gtoggle.
+# Create a vanilla bootstrap config file, and use it as argument
+# to --with-build-config=bootstrap-O2 (Oh-2).
+# Not for upstream, this is just for us.
+--- /dev/null 2015-12-28 12:59:59.000000000 -0800
++++ config/bootstrap-O2.mk 2015-12-28 12:57:24.841537382 -0800
[email protected]@ -0,0 +1 @@
++BOOT_CFLAGS := -O2 $(filter-out -O%, $(BOOT_CFLAGS))