Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only turn off strict aliasing for gcc 4.4.*

  • Loading branch information...
commit 12ae767849673b7f457516f4f578b256df97fe74 1 parent 5419eb0
@dustin dustin authored dormando committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 configure.ac
View
8 configure.ac
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.