[svn] gcry - r1431 - trunk
svn author marcus
cvs at cvs.gnupg.org
Mon Apr 19 19:15:03 CEST 2010
Author: marcus
Date: 2010-04-19 19:15:03 +0200 (Mon, 19 Apr 2010)
New Revision: 1431
Modified:
trunk/ChangeLog
trunk/configure.ac
Log:
2010-04-19 Marcus Brinkmann <marcus at g10code.de>
* configure.ac: Check for -fno-strict-aliasing.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-04-19 17:08:12 UTC (rev 1430)
+++ trunk/ChangeLog 2010-04-19 17:15:03 UTC (rev 1431)
@@ -1,3 +1,7 @@
+2010-04-19 Marcus Brinkmann <marcus at g10code.de>
+
+ * configure.ac: Check for -fno-strict-aliasing.
+
2010-04-12 Brad Hards <bradh at frogmouth.net> (wk)
* configure.ac: Print more verbose info at the end.
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2010-04-19 17:08:12 UTC (rev 1430)
+++ trunk/configure.ac 2010-04-19 17:15:03 UTC (rev 1431)
@@ -928,6 +928,17 @@
if test x"$_gcc_wopt" = xyes ; then
CFLAGS="$CFLAGS -Wpointer-arith"
fi
+
+ AC_MSG_CHECKING([if gcc supports -fno-strict-aliasing])
+ _gcc_cflags_save=$CFLAGS
+ CFLAGS="-fno-strict-aliasing"
+ AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]),_gcc_wopt=yes,_gcc_wopt=no)
+ AC_MSG_RESULT($_gcc_wopt)
+ CFLAGS=$_gcc_cflags_save;
+ if test x"$_gcc_wopt" = xyes ; then
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
+ fi
+
fi
fi
More information about the Gnupg-commits
mailing list