This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
_GNU_SOURCE
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Wed, 24 Oct 2007 14:23:30 +0930
- Subject: _GNU_SOURCE
Use the canonical way of setting _GNU_SOURCE, and regenerate various
files. I've trimmed off the makefile dependency changes from the
following diff.
bfd/
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* po/SRC-POTFILES.in: Regenerate.
binutils/
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.
gas/
* Makefile.am (INCLUDES, DEP_INCLUDES): Remove -D_GNU_SOURCE.
Run "make dep-am".
* configure.in: Invoke AC_GNU_SOURCE.
* Makefile.in: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
gprof/
* Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
* configure.in: Invoke AC_GNU_SOURCE.
* Makefile.in: Regenerate.
* configure: Regenerate.
* gconfig.in: Regenerate.
ld/
* Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
* configure.in: Invoke AC_GNU_SOURCE.
* Makefile.in: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.
opcodes/
* po/POTFILES.in: Regenerate.
Index: gas/Makefile.am
===================================================================
RCS file: /cvs/src/src/gas/Makefile.am,v
retrieving revision 1.154
diff -u -p -r1.154 Makefile.am
--- gas/Makefile.am 8 Oct 2007 15:26:41 -0000 1.154
+++ gas/Makefile.am 24 Oct 2007 02:00:12 -0000
@@ -498,7 +498,7 @@ INCDIR = $(BASEDIR)/include
# Both . and srcdir are used, in that order,
# so that tm.h and config.h will be found in the compilation
# subdirectory rather than in the source directory.
-INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \
+INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \
-I$(INCDIR) -I$(srcdir)/.. -I$(BFDDIR) @INCINTL@ \
-DLOCALEDIR="\"$(datadir)/locale\""
@@ -506,7 +506,7 @@ INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir)
# with $${srcdir}, and should work in a subdirectory. This is used
# when building dependencies, because the dependency building is done
# in a subdirectory.
-DEP_INCLUDES = -D_GNU_SOURCE -I.. -I$${srcdir} -I../../bfd \
+DEP_INCLUDES = -I.. -I$${srcdir} -I../../bfd \
-I$${srcdir}/config -I$${srcdir}/../include -I$${srcdir}/.. \
-I$${srcdir}/../bfd @INCINTL@ \
-DLOCALEDIR="\"$(datadir)/locale\""
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.202
diff -u -p -r1.202 configure.in
--- gas/configure.in 9 Sep 2007 01:22:57 -0000 1.202
+++ gas/configure.in 24 Oct 2007 02:00:21 -0000
@@ -596,6 +596,7 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${tar
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
AC_PROG_CC
+AC_GNU_SOURCE
AC_PROG_YACC
AM_PROG_LEX
Index: gprof/Makefile.am
===================================================================
RCS file: /cvs/src/src/gprof/Makefile.am,v
retrieving revision 1.40
diff -u -p -r1.40 Makefile.am
--- gprof/Makefile.am 13 Aug 2007 01:53:00 -0000 1.40
+++ gprof/Makefile.am 24 Oct 2007 02:00:32 -0000
@@ -17,7 +17,7 @@ AM_CFLAGS = $(WARN_CFLAGS)
MKDEP = gcc -MM
-INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include \
+INCLUDES = -DDEBUG -I../bfd -I$(srcdir)/../include \
-I$(srcdir)/../bfd @INCINTL@ -I. \
-DLOCALEDIR="\"$(datadir)/locale\""
Index: gprof/configure.in
===================================================================
RCS file: /cvs/src/src/gprof/configure.in,v
retrieving revision 1.36
diff -u -p -r1.36 configure.in
--- gprof/configure.in 12 Oct 2007 16:36:48 -0000 1.36
+++ gprof/configure.in 24 Oct 2007 02:00:39 -0000
@@ -20,6 +20,7 @@ dnl config.h, to avoid any possible conf
AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
AC_PROG_CC
+AC_GNU_SOURCE
AC_PROG_INSTALL
AC_CHECK_FUNCS(setmode)
Index: ld/Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.243
diff -u -p -r1.243 Makefile.am
--- ld/Makefile.am 10 Aug 2007 12:36:21 -0000 1.243
+++ ld/Makefile.am 24 Oct 2007 02:00:41 -0000
@@ -101,7 +101,7 @@ AM_MAKEINFOFLAGS = -I $(srcdir) -I $(BFD
TEXI2DVI = texi2dvi -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/doc \
-I $(top_srcdir)/../libiberty
-INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
+INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
@INCINTL@ $(HDEFINES) $(CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\""
Index: ld/configure.in
===================================================================
RCS file: /cvs/src/src/ld/configure.in,v
retrieving revision 1.49
diff -u -p -r1.49 configure.in
--- ld/configure.in 12 Aug 2007 18:59:46 -0000 1.49
+++ ld/configure.in 24 Oct 2007 02:00:50 -0000
@@ -83,6 +83,7 @@ fi
# host-specific stuff:
AC_PROG_CC
+AC_GNU_SOURCE
AC_PROG_INSTALL
ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
--
Alan Modra
Australia Development Lab, IBM