Added no-strict-aliasing to compile flags.

Would not compile on my openSUSE 12.2 system without this fix.
This commit is contained in:
Lee Duncan
2012-12-22 10:59:07 -08:00
parent 09df905d30
commit efcb6a4df9

View File

@@ -22,7 +22,7 @@ AM_CONDITIONAL(LD_ISCSI,
[expr "$host_os" : linux > /dev/null 2>&1])
if test "$ac_cv_prog_gcc" = yes; then
WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror"
WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing"
fi
AC_SUBST(WARN_CFLAGS)