public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Remove -D_GNU_SOURCE in binutils
@ 2007-08-30 13:32 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2007-08-30 13:32 UTC (permalink / raw)
  To: binutils

binutils uses AC_GNU_SOURCE. There is no need to use -D_GNU_SOURCE.
However, config.h has to be included first for _GNU_SOURCE to
be effective. OK to install?


H.J.
----
2007-08-30  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
	* Makefile.in: Regenerated.

	* sysdep.h: Include "config.h" first.

--- binutils/Makefile.am.gnu	2007-07-09 06:29:40.000000000 -0700
+++ binutils/Makefile.am	2007-08-30 06:06:15.000000000 -0700
@@ -71,8 +71,7 @@ INCDIR	= $(BASEDIR)/include
 
 MKDEP = gcc -MM
 
-INCLUDES = -D_GNU_SOURCE \
-	 -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
+INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
 	 @HDEFINES@ \
 	 @INCINTL@ \
 	 -DLOCALEDIR="\"$(datadir)/locale\"" \
--- binutils/sysdep.h.gnu	2007-07-05 11:28:06.000000000 -0700
+++ binutils/sysdep.h	2007-08-30 06:08:36.000000000 -0700
@@ -21,12 +21,12 @@
 #ifndef _BIN_SYSDEP_H
 #define _BIN_SYSDEP_H
 
+#include "config.h"
 #include "ansidecl.h"
 #include <stdio.h>
 #include <sys/types.h>
 
 #include "bfdver.h"
-#include "config.h"
 
 #include <stdarg.h>
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-30 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-30 13:32 PATCH: Remove -D_GNU_SOURCE in binutils H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).