public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.2.18pre18: many calls to kwhich
@ 2000-11-02 14:52 TenThumbs
  2000-11-04  1:28 ` Peter Samuelson
  0 siblings, 1 reply; 2+ messages in thread
From: TenThumbs @ 2000-11-02 14:52 UTC (permalink / raw)
  To: linux-kernel

I noticed that kwhich is called a lot:

make oldconfig:        10
make dep:              65
make bzImage modules: 142

Assuming that this is unintentional, this patch helps a lot.

--- Makefile.orig       Sun Oct 29 09:09:16 2000
+++ Makefile    Tue Oct 31 11:39:11 2000
@@ -28,7 +28,7 @@
 #      kgcc for Conectiva and Red Hat 7
 #      otherwise 'cc'
 #
-CC     =$(shell if [ -n "$(CROSS_COMPILE)" ]; then echo $(CROSS_COMPILE)gcc; else \
+CC     :=$(shell if [ -n "$(CROSS_COMPILE)" ]; then echo $(CROSS_COMPILE)gcc; else \
        $(CONFIG_SHELL) scripts/kwhich gcc272 2>/dev/null || $(CONFIG_SHELL) scripts/kwhich kgcc 2>/dev/null || echo cc; fi) \
        -D__KERNEL__ -I$(HPATH)
 CPP    =$(CC) -E

(If it gets wrapped, it's just "=" -> ":=").

It's also interesting that make dep calls kwhich an odd number
of times including one case where it looked for "gcc." I suspect
a makefile isn't playing nice but I haven't looked for it.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-04  1:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-02 14:52 2.2.18pre18: many calls to kwhich TenThumbs
2000-11-04  1:28 ` Peter Samuelson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox