git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37511
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
fi
else
if test "$GCC" = yes ; then
- OPTIMISE_CFLAGS="-O2"
+ OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
else
OPTIMISE_CFLAGS="-O"
fi
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