This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Remove -D_GNU_SOURCE in 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>
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]