From 8b33d298483d3365594b277ac0904352f070f686 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 23 Jan 2002 04:12:53 +0000 Subject: [PATCH] make sure -fno-strict-aliasing gets set for gcc 2.96 (dunno if this will work, but worth a try) --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 65c73c26b..2e64b8d43 100644 --- a/configure.ac +++ b/configure.ac @@ -1150,8 +1150,17 @@ if test "x$optimize" = xyes; then set $2 if test $1 -ge 3; then CFLAGS="$CFLAGS -fstrict-aliasing" + else + if test $1 = 2 -a $ $2 = 96; then + CFLAGS="$CFLAGS -fno-strict-aliasing" + fi fi IFS=" " + else + set $CCVER + if test $1 = 2.96; then + CFLAGS="$CFLAGS -fno-strict-aliasing" + fi fi fi AC_MSG_CHECKING(for special compiler settings)