Skip to content

Commit

Permalink
Only turn off strict aliasing for gcc 4.4.*
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin authored and dormando committed Jul 9, 2009
1 parent 5419eb0 commit 12ae767
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configure.ac
Expand Up @@ -364,7 +364,13 @@ then
AC_DEFINE([_GNU_SOURCE],[1],[find sigignore on Linux])
elif test "$GCC" = "yes"
then
CFLAGS="$CFLAGS -Wall -Werror -pedantic -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
GCC_VERSION=`gcc -dumpversion`
CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
case $GCC_VERSION in
4.4.*)
CFLAGS="$CFLAGS -fno-strict-aliasing"
;;
esac
AC_DEFINE([_GNU_SOURCE],[1],[find sigignore on Linux])
elif test "$SUNCC" = "yes"
then
Expand Down

0 comments on commit 12ae767

Please sign in to comment.