Do -fno-strict-aliasing if --enable-debug isn't used

This commit is contained in:
Yevgen Muntyan 2008-01-20 03:11:57 -06:00
parent e1061fe738
commit c8ca1d62c4

View File

@ -94,8 +94,8 @@ m4_undefine([_moo_WNAME])
])
if $MOO_GCC; then
if test "x$_moo_all_warnings" = "xyes"; then
_MOO_AC_CHECK_COMPILER_OPTIONS(MOO_DEBUG_CFLAGS,[-fstrict-aliasing])
if test x$MOO_DEBUG_ENABLED = "xyes"; then
_MOO_AC_CHECK_COMPILER_OPTIONS(MOO_DEBUG_CFLAGS,[-fstrict-aliasing -Wstrict-aliasing])
else
_MOO_AC_CHECK_COMPILER_OPTIONS(MOO_DEBUG_CFLAGS,[-fno-strict-aliasing])
fi