diff --git a/configure b/configure index b2b6f36c..e45f14ce 100755 --- a/configure +++ b/configure @@ -3018,7 +3018,7 @@ fi; if test "$debugging" = "yes"; then CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT" else - CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT" + CFLAGS="-O3 -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT" fi # Check whether --enable-optimize or --disable-optimize was given. diff --git a/configure.in b/configure.in index def8ffe4..f58cc9db 100644 --- a/configure.in +++ b/configure.in @@ -75,7 +75,7 @@ AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ if test "$debugging" = "yes"; then CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT" else - CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT" + CFLAGS="-O3 -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT" fi AC_ARG_ENABLE(optimize, [ --enable-optimize Enable CPU optimize], [ optimize=$enableval ], [ optimize=no ])