summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-09-13 10:20:56 +0000
committerru <ru@FreeBSD.org>2006-09-13 10:20:56 +0000
commit33d6440a5a026fdcc6f181482dbfbff75c64edb2 (patch)
tree99b809af87a8d89ee12449e6d0d1ac8c9cf19a36 /share
parentbee41c3ee394e5d0b4c76c2f1b3917282e10a8f4 (diff)
downloadFreeBSD-src-33d6440a5a026fdcc6f181482dbfbff75c64edb2.zip
FreeBSD-src-33d6440a5a026fdcc6f181482dbfbff75c64edb2.tar.gz
- Change the example CFLAGS entry to match our default in sys.mk.
- Document that -fno-strict-aliasing is required for -O2. Prodded by: users of stable@
Diffstat (limited to 'share')
-rw-r--r--share/examples/etc/make.conf10
1 files changed, 7 insertions, 3 deletions
diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf
index bdb5670..8d47d7e 100644
--- a/share/examples/etc/make.conf
+++ b/share/examples/etc/make.conf
@@ -48,10 +48,14 @@
# CFLAGS controls the compiler settings used when compiling C code.
# Note that optimization settings other than -O and -O2 are not recommended
# or supported for compiling the world or the kernel - please revert any
-# nonstandard optimization settings to "-O" or -O2 before submitting bug
-# reports without patches to the developers.
+# nonstandard optimization settings to "-O" or "-O2 -fno-strict-aliasing"
+# before submitting bug reports without patches to the developers.
#
-#CFLAGS= -O -pipe
+# Compiling with -fstrict-aliasing optimization breaks some [notable] ports.
+# GCC turns on -fstrict-aliasing optimization at all levels above -O[1], so
+# explicitly turn it off when using compiling with the -O2 optimization level.
+#
+#CFLAGS= -O2 -fno-strict-aliasing -pipe
#
# CXXFLAGS controls the compiler settings used when compiling C++ code.
# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish
OpenPOWER on IntegriCloud