diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf index bdb567074c49..8d47d7e37375 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