summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2010-04-27 08:57:31 +0200
committerJim Meyering <meyering@redhat.com>2010-04-27 09:02:59 +0200
commit8ca073ee3bf9c2ecd10dbfbf39d67b3a25a2a3fd (patch)
treeb4bf1bd3fba95b1cf5954bda8be2391d30f0d092
parent6e417accc9b6501a730eb21d796c5660647e8aa1 (diff)
downloadgnulib-8ca073ee3bf9c2ecd10dbfbf39d67b3a25a2a3fd.tar.gz
gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
* m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_. Prompted by an exchange with Gilles Espinasse.
-rw-r--r--ChangeLog7
-rw-r--r--m4/gnulib-common.m48
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 283d4c13e0..06a4ce4a3b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-26 Jim Meyering <jim@meyering.net>
+ Bruno Haible <bruno@clisp.org>
+
+ gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
+ * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
+ Prompted by an exchange with Gilles Espinasse.
+
2010-04-26 Jim Meyering <meyering@redhat.com>
git-version-gen: aesthetic tweak
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index 54b251737c..4c7ac30d0f 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 19
+# gnulib-common.m4 serial 20
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -35,6 +35,12 @@ AC_DEFUN([gl_COMMON_BODY], [
is a misnomer outside of parameter lists. */
#define _UNUSED_PARAMETER_ _GL_UNUSED
])
+ dnl Preparation for running test programs:
+ dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not
+ dnl to /dev/tty, so they can be redirected to log files. Such diagnostics
+ dnl arise e.g., in the macros gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N.
+ LIBC_FATAL_STDERR_=1
+ export LIBC_FATAL_STDERR_
])
# gl_MODULE_INDICATOR_CONDITION