This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, libfortran] Don't define _GNU_SOURCE in AM_CPPFLAGS
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Fortran List <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 11 Apr 2011 23:34:58 +0300
- Subject: [Patch, libfortran] Don't define _GNU_SOURCE in AM_CPPFLAGS
Hi,
the attached patch removes the definition of _GNU_SOURCE from
AM_CPPFLAGS. This is not needed anymore since nowadays we're calling
AC_USE_SYSTEM_EXTENSIONS in configure.ac which causes _GNU_SOURCE to
be defined in config.h.
Regtested on x86_64-unknown-linux-gnu, Ok for trunk?
(I'm not committing this as obvious, though the patch is trivial and
it seems obvious to me, I still wonder if I'm missing something)
2011-04-11 Janne Blomqvist <jb@gcc.gnu.org>
* Makefile.am: Remove _GNU_SOURCE from CFLAGS.
* Makefile.in: Regenerated.
--
Janne Blomqvist
diff --git a/libgfortran/Makefile.am b/libgfortran/Makefile.am
index d1e6d4f..c38e330 100644
--- a/libgfortran/Makefile.am
+++ b/libgfortran/Makefile.am
@@ -49,7 +49,7 @@ libgfortranbegin_la_LINK = $(LINK) $(libgfortranbegin_la_LDFLAGS)
## use -iquote
AM_CPPFLAGS = -iquote$(srcdir)/io -I$(srcdir)/$(MULTISRCTOP)../gcc \
-I$(srcdir)/$(MULTISRCTOP)../gcc/config $(LIBQUADINCLUDE) \
- -I$(MULTIBUILDTOP)../../$(host_subdir)/gcc -D_GNU_SOURCE
+ -I$(MULTIBUILDTOP)../../$(host_subdir)/gcc
# Fortran rules for complex multiplication and division
AM_CFLAGS += -fcx-fortran-rules