diff options
author | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-07-14 18:49:43 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-07-14 18:49:43 -0400 |
commit | 90ac94b9cb3defa8bf174af8c7c9fc6c42e8762b (patch) | |
tree | 77821dbf8b03b9bc4be7d683cdc45a4e962489d4 /configure.ac | |
parent | 268561a3c674c5a4da945124b7b8f075b792a170 (diff) |
Add -fno-strict-aliasing
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a684b1b..ea9c4fd 100644 --- a/configure.ac +++ b/configure.ac @@ -101,10 +101,18 @@ AC_SUBST(LT_VERSION_INFO) changequote(,)dnl if test "x$GCC" = "xyes"; then + case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; - esac fi changequote([,])dnl + esac + + case " $CFLAGS " in + *[\ \ ]-fno-strict-aliasing[\ \ ]*) ;; + *) CFLAGS="$CFLAGS -fno-strict-aliasing" ;; + esac + +fi changequote([,])dnl AC_PATH_PROG(PERL, perl, no) if test "x$PERL" = xno; then |