about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@codesourcery.com>2010-04-08 16:48:17 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-08 16:48:17 -0700
commit59d9f1d6983fc9b606a1f9214fb817efe3d6cff8 (patch)
treecadc1d564288b21d3aec3bb4463d348617e727bb /Makeconfig
parenta7b420eadcd706702b5244dfa3beee06c7a990aa (diff)
downloadglibc-59d9f1d6983fc9b606a1f9214fb817efe3d6cff8.tar.gz
glibc-59d9f1d6983fc9b606a1f9214fb817efe3d6cff8.tar.xz
glibc-59d9f1d6983fc9b606a1f9214fb817efe3d6cff8.zip
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.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makeconfig b/Makeconfig
index cd77fe16b8..dc81545070 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.