[BZ #869]
authorRoland McGrath <roland@gnu.org>
Tue, 19 Jul 2005 03:54:55 +0000 (03:54 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 19 Jul 2005 03:54:55 +0000 (03:54 +0000)
2005-07-18  Roland McGrath  <roland@redhat.com>
[BZ #869]
* Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
objdump command line.

Makerules

index 63b07a24a6d20fae4dbe4aea596649a1df7a966b..e95d3107ecd98c0eba192274a9519bdfb1f8035b 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1390,7 +1390,7 @@ objs-for-stubs := $(foreach o,$(object-suffixes-for-libc),$(o-objects)) \
                  $(addprefix $(objpfx),$(extra-objs))
 $(objpfx)stubs: $(objs-for-stubs)
 ifneq (,$(strip $(objs-for-stubs)))
-       $(OBJDUMP) -h $^ | \
+       (cd $(objdir); $(OBJDUMP) -h $(patsubst $(objpfx)%,%,$^)) | \
        $(AWK) '/\.gnu\.glibc-stub\./ { \
                  sub(/\.gnu\.glibc-stub\./, "", $$2); \
                  stubs[$$2] = 1; } \