]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
Finishing up Monolithic build support, and proper generation of more wx library names...
[wxWidgets.git] / configure.in
index 34f53337e82c8fd94c1f0226bdfdf996bb1bb516..cd9eb836ca37b55c87fafeb70399068e8b7f55fb 100644 (file)
@@ -5147,7 +5147,10 @@ if test "$wxUSE_OPTIMISE" = "no" ; then
     fi
 else
     if test "$GCC" = yes ; then
-        OPTIMISE_CFLAGS="-O2"
+        dnl Switch on optimisation but keep strict-aliasing off for now (see
+        dnl -fstrict-aliasing in the gcc manual). When it is switched back on
+        dnl consider using -Wstrict-aliasing=2.
+        OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
     else
         OPTIMISE_CFLAGS="-O"
     fi