aboutsummaryrefslogtreecommitdiff
path: root/Makerules
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 /Makerules
parenta7b420eadcd706702b5244dfa3beee06c7a990aa (diff)
downloadglibc-59d9f1d6983fc9b606a1f9214fb817efe3d6cff8.zip
glibc-59d9f1d6983fc9b606a1f9214fb817efe3d6cff8.tar.gz
glibc-59d9f1d6983fc9b606a1f9214fb817efe3d6cff8.tar.bz2
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 'Makerules')
-rw-r--r--Makerules14
1 files changed, 14 insertions, 0 deletions
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