From c8ca1d62c4cb0e15b1985da5ad7d51ab5527ea50 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sun, 20 Jan 2008 03:11:57 -0600 Subject: [PATCH] Do -fno-strict-aliasing if --enable-debug isn't used --- m4/moo-debug.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/moo-debug.m4 b/m4/moo-debug.m4 index 116272d9..4505fba2 100644 --- a/m4/moo-debug.m4 +++ b/m4/moo-debug.m4 @@ -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