GNU C Library master sources branch, master, updated. glibc-2.11-352-g59d9f1d

drepper@sourceware.org drepper@sourceware.org
Thu Apr 8 23:48:00 GMT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  59d9f1d6983fc9b606a1f9214fb817efe3d6cff8 (commit)
      from  a7b420eadcd706702b5244dfa3beee06c7a990aa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=59d9f1d6983fc9b606a1f9214fb817efe3d6cff8

commit 59d9f1d6983fc9b606a1f9214fb817efe3d6cff8
Author: Daniel Jacobowitz <dan@codesourcery.com>
Date:   Thu Apr 8 16:48:17 2010 -0700

    Shorten build commands
    
    This patch scratches an itch.  Each individual gcc command in the
    glibc build is over 1K, which means it takes up a good chunk of my
    terminal.  Most of that is include paths.  Any version of GCC new
    enough to build glibc supports response files, which were added in
    2005.  So use a response file for the static list of include paths.
    Now the build commands are a lot shorter, and easier to use when
    developing glibc.

diff --git a/ChangeLog b/ChangeLog
index e53d5bf..c35f5ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* Makeconfig (+common-includes): Define.
+	(+includes): Use @$(common-objpfx)includes.
+	* Makefile (postclean): Remove includes and includes.mk.
+	* Makerules ($(common-objpfx)includes.mk): Include and create
+	includes.mk.  Create includes.
+
 2010-04-07  Andreas Schwab  <schwab@redhat.com>
 
 	* sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
diff --git a/Makeconfig b/Makeconfig
index cd77fe1..dc81545 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -670,9 +670,10 @@ endif	# $(+cflags) == ""
 # library source directory, in the include directory, and in the
 # current directory.
 +sysdep-includes = $(addprefix -I,$(+sysdep_dirs))
++common-includes = $(+sysdep-includes) $(includes) $(sysincludes)
 +includes = -I$(..)include $(if $(subdir),$(objpfx:%/=-I%)) \
-	    $(+sysdep-includes) $(includes) \
-	    $(patsubst %/,-I%,$(..)) $(libio-include) -I. $(sysincludes)
+	    @$(common-objpfx)includes \
+	    $(patsubst %/,-I%,$(..)) $(libio-include) -I.
 
 # Since libio has several internal header files, we use a -I instead
 # of many little headers in the include directory.
diff --git a/Makefile b/Makefile
index 61cfa43..d2327b3 100644
--- a/Makefile
+++ b/Makefile
@@ -227,7 +227,7 @@ parent-mostlyclean: common-mostlyclean # common-mostlyclean is in Makerules.
 parent-clean: parent-mostlyclean common-clean
 
 postclean = $(addprefix $(common-objpfx),$(postclean-generated)) \
-	    $(addprefix $(objpfx),sysd-dirs sysd-rules) \
+	    $(addprefix $(objpfx),sysd-dirs sysd-rules includes includes.mk) \
 	    $(addprefix $(objpfx),sysd-sorted soversions.mk soversions.i)
 
 clean: parent-clean
diff --git a/Makerules b/Makerules
index bf03b38..9986730 100644
--- a/Makerules
+++ b/Makerules
@@ -267,6 +267,20 @@ ifndef sysd-rules-done
 no_deps=t
 endif
 
+-include $(common-objpfx)includes.mk
+ifneq ($(+common-includes),$(saved-includes))
+# Recreate includes.mk (and includes).
+includes-force = FORCE
+FORCE:
+endif
+$(common-objpfx)includes.mk: $(includes-force)
+	-@rm -f $@T $(common-objpfx)includesT
+	for inc in $(+common-includes); do echo "$$inc"; done \
+	  > $(common-objpfx)includesT
+	mv -f $(common-objpfx)includesT $(common-objpfx)includes
+	echo 'saved-includes := $(+common-includes)' > $@T
+	mv -f $@T $@
+
 define o-iterator-doit
 $(objpfx)%$o: %.S $(before-compile); $$(compile-command.S)
 endef

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog  |    8 ++++++++
 Makeconfig |    5 +++--
 Makefile   |    2 +-
 Makerules  |   14 ++++++++++++++
 4 files changed, 26 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources



More information about the Glibc-cvs mailing list