[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109844: * configure.ac (_FORTIFY_SOU
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109844: * configure.ac (_FORTIFY_SOURCE): Define only when optimizing. |
Date: |
Sat, 01 Sep 2012 11:54:38 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109844
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2012-09-01 11:54:38 -0700
message:
* configure.ac (_FORTIFY_SOURCE): Define only when optimizing.
This ports to glibc 2.15 or later, when configured with
--enable-gcc-warnings. See Eric Blake in
<http://lists.gnu.org/archive/html/bug-grep/2012-09/msg00000.html>.
modified:
ChangeLog
configure.ac
=== modified file 'ChangeLog'
--- a/ChangeLog 2012-09-01 06:38:52 +0000
+++ b/ChangeLog 2012-09-01 18:54:38 +0000
@@ -1,3 +1,10 @@
+2012-09-01 Paul Eggert <address@hidden>
+
+ * configure.ac (_FORTIFY_SOURCE): Define only when optimizing.
+ This ports to glibc 2.15 or later, when configured with
+ --enable-gcc-warnings. See Eric Blake in
+ <http://lists.gnu.org/archive/html/bug-grep/2012-09/msg00000.html>.
+
2012-09-01 Daniel Colascione <address@hidden>
* configure.ac: Introduce term_header variable, which holds the
=== modified file 'configure.ac'
--- a/configure.ac 2012-09-01 06:38:52 +0000
+++ b/configure.ac 2012-09-01 18:54:38 +0000
@@ -737,8 +737,13 @@
gl_WARN_ADD([-funit-at-a-time])
AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.])
- AC_DEFINE([_FORTIFY_SOURCE], [2],
- [enable compile-time and run-time bounds-checking, and some warnings])
+ AH_VERBATIM([FORTIFY_SOURCE],
+ [/* Enable compile-time and run-time bounds-checking, and some warnings,
+ without upsetting glibc 2.15+. */
+ #if defined __OPTIMIZE__ && __OPTIMIZE__
+ # define _FORTIFY_SOURCE 2
+ #endif
+ ])
AC_DEFINE([GNULIB_PORTCHECK], [1], [enable some gnulib portability checks])
# We use a slightly smaller set of warning options for lib/.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109844: * configure.ac (_FORTIFY_SOURCE): Define only when optimizing.,
Paul Eggert <=