Added -fno-strict-aliasing to compiler switch
This commit is contained in:
parent
ed2405aa73
commit
0620458f5d
2
configure
vendored
2
configure
vendored
@ -3018,7 +3018,7 @@ fi;
|
|||||||
if test "$debugging" = "yes"; then
|
if test "$debugging" = "yes"; then
|
||||||
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT"
|
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT"
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
# Check whether --enable-optimize or --disable-optimize was given.
|
# Check whether --enable-optimize or --disable-optimize was given.
|
||||||
|
@ -75,7 +75,7 @@ AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [
|
|||||||
if test "$debugging" = "yes"; then
|
if test "$debugging" = "yes"; then
|
||||||
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT"
|
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT"
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(optimize, [ --enable-optimize Enable CPU optimize], [ optimize=$enableval ], [ optimize=no ])
|
AC_ARG_ENABLE(optimize, [ --enable-optimize Enable CPU optimize], [ optimize=$enableval ], [ optimize=no ])
|
||||||
|
Reference in New Issue
Block a user