gnupg (ChangeLog configure.ac)
cvs user dshaw
cvs at cvs.gnupg.org
Mon Jun 13 22:22:49 CEST 2005
Date: Monday, June 13, 2005 @ 22:45:06
Author: dshaw
Path: /cvs/gnupg/gnupg
Modified: ChangeLog configure.ac
* configure.ac: Add check for no-pointer-sign warning keyword, and
disable. This is gcc4 specific.
--------------+
ChangeLog | 5 +++++
configure.ac | 16 +++++++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
Index: gnupg/ChangeLog
diff -u gnupg/ChangeLog:1.251 gnupg/ChangeLog:1.252
--- gnupg/ChangeLog:1.251 Tue May 31 10:39:18 2005
+++ gnupg/ChangeLog Mon Jun 13 22:45:05 2005
@@ -1,3 +1,8 @@
+2005-06-13 David Shaw <dshaw at jabberwocky.com>
+
+ * configure.ac: Add check for no-pointer-sign warning keyword, and
+ disable. This is gcc4 specific.
+
2005-05-31 Werner Koch <wk at g10code.com>
Released 1.4.2rc1.
Index: gnupg/configure.ac
diff -u gnupg/configure.ac:1.143 gnupg/configure.ac:1.144
--- gnupg/configure.ac:1.143 Tue May 31 14:26:02 2005
+++ gnupg/configure.ac Mon Jun 13 22:45:05 2005
@@ -1214,7 +1214,7 @@
AC_SUBST(NETLIBS)
AC_SUBST(W32LIBS)
-# Special options used fith gcc.
+# Special options used with gcc.
if test "$GCC" = yes; then
# Note that it is okay to use CFLAGS here because this are just
# warning options and the user should have a chance of overriding
@@ -1226,6 +1226,20 @@
CFLAGS="$CFLAGS -Wall"
fi
+ AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
+
+ _gcc_cflags_save=$CFLAGS
+ CFLAGS="-Wno-pointer-sign"
+
+ AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]),_gcc_psign=yes,_gcc_psign=no)
+ AC_MSG_RESULT($_gcc_psign)
+
+ CFLAGS=$_gcc_cflags_save;
+
+ if test x"$_gcc_psign" = xyes ; then
+ CFLAGS="$CFLAGS -Wno-pointer-sign"
+ fi
+
# Non exec stack hack. Fixme: Write a test to check whether as
# can cope with it and use the enable-noexecstack option only to
# disable it in case it is required on sime platforms.
More information about the Gnupg-commits
mailing list