From: Peter Samuelson <peter@cadcamlab.org>
To: alan@lxorguk.ukuu.org.uk
Cc: Mike van Smoorenburg <miquels@traveler.cistron-office.nl>,
linux-kernel@vger.kernel.org
Subject: Re: Linux 2.2.19pre7
Date: Tue, 9 Jan 2001 20:28:55 -0600 [thread overview]
Message-ID: <20010109202855.C3385@cadcamlab.org> (raw)
In-Reply-To: <3A5B6437.3BC23AD3@metabyte.com> <93g39b$a9b$1@enterprise.cistron.net>
In-Reply-To: <93g39b$a9b$1@enterprise.cistron.net>; from miquels@traveler.cistron-office.nl on Tue, Jan 09, 2001 at 10:27:55PM +0000
[Mike van Smoorenburg]
> Also calling kwhich with multiple arguments was actually the idea
> behind the script.
Yes, and that's why my optimization patch (in 2.2.19pre3, since
reverted) broke -- it relied on multiple arguments.
Alan, could you put it back in now?
Peter
--- 2.2.19-7/Makefile~ Tue Jan 9 20:20:14 2001
+++ 2.2.19-7/Makefile Tue Jan 9 20:27:27 2001
@@ -24,12 +24,14 @@
LD =$(CROSS_COMPILE)ld
#
# foo-bar-gcc for cross builds
-# gcc272 for Debian's old compiler for kernels
# kgcc for Conectiva, Mandrake and Red Hat 7
+# gcc272 for Debian
# otherwise 'cc'
#
-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) \
+CCFOUND :=$(shell $(CONFIG_SHELL) scripts/kwhich kgcc gcc272 cc gcc)
+## Better, but requires GNU make 3.78
+##CC =$(if $(CROSS_COMPILE),$(CROSS_COMPILE)gcc,$(CCFOUND)) -D__KERNEL__ -I$(HPATH)
+CC =$(shell if [ -n "$(CROSS_COMPILE)" ]; then echo $(CROSS_COMPILE)gcc; else echo $(CCFOUND); fi) \
-D__KERNEL__ -I$(HPATH)
CPP =$(CC) -E
AR =$(CROSS_COMPILE)ar
-
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/
next prev parent reply other threads:[~2001-01-10 2:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-09 19:19 Pete Zaitcev
2001-01-09 22:27 ` Miquel van Smoorenburg
2001-01-10 2:28 ` Peter Samuelson [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-01-09 17:16 Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010109202855.C3385@cadcamlab.org \
--to=peter@cadcamlab.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=miquels@traveler.cistron-office.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®