From 59d9f1d6983fc9b606a1f9214fb817efe3d6cff8 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 8 Apr 2010 16:48:17 -0700 Subject: 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. --- Makerules | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index bf03b38a9c..9986730d97 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 -- cgit 1.4.1