mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kbuild: Implicit dependence on the C compiler
Date: Mon, 17 Jan 2005 23:00:53 +0100	[thread overview]
Message-ID: <20050117220052.GB18293@mars.ravnborg.org> (raw)
In-Reply-To: <cshbd7$nff$1@terminus.zytor.com>

On Mon, Jan 17, 2005 at 09:40:55PM +0000, H. Peter Anvin wrote:
> Okay, this is driving me utterly crazy...
> 
> How the heck do I get kbuild to *not* think that because I'm using a
> different C compiler (including "gcc" versus "distcc"), or I'm on a
> different host, that it has to rebuild every single object file in my
> directory?  This is an unbelievable headache.

It better be difficult. You want to recompile when changing gcc.
Try this untested patch.

There is no way to tell kbuild "ignore gcc change"

	Sam


===== Makefile.lib 1.27 vs edited =====
--- 1.27/scripts/Makefile.lib	2004-10-27 00:06:46 +02:00
+++ edited/Makefile.lib	2005-01-17 22:58:44 +01:00
@@ -187,9 +187,7 @@
 # >'< substitution is for echo to work, >$< substitution to preserve $ when reloading .cmd file
 # note: when using inline perl scripts [perl -e '...$$t=1;...'] in $(cmd_xxx) double $$ your perl vars
 
-if_changed = $(if $(strip $? \
-		          $(filter-out $(cmd_$(1)),$(cmd_$@))\
-			  $(filter-out $(cmd_$@),$(cmd_$(1)))),\
+if_changed = \
 	@set -e; \
 	$(if $($(quiet)cmd_$(1)),echo '  $(subst ','\'',$($(quiet)cmd_$(1)))';) \
 	$(cmd_$(1)); \
@@ -199,9 +197,7 @@
 # execute the command and also postprocess generated .d dependencies
 # file
 
-if_changed_dep = $(if $(strip $? $(filter-out FORCE $(wildcard $^),$^)\
-		          $(filter-out $(cmd_$(1)),$(cmd_$@))\
-			  $(filter-out $(cmd_$@),$(cmd_$(1)))),\
+if_changed_dep = \ 
 	@set -e; \
 	$(if $($(quiet)cmd_$(1)),echo '  $(subst ','\'',$($(quiet)cmd_$(1)))';) \
 	$(cmd_$(1)); \
@@ -213,9 +209,7 @@
 # will check if $(cmd_foo) changed, or any of the prequisites changed,
 # and if so will execute $(rule_foo)
 
-if_changed_rule = $(if $(strip $? \
-		               $(filter-out $(cmd_$(1)),$(cmd_$@))\
-			       $(filter-out $(cmd_$@),$(cmd_$(1)))),\
+if_changed_rule = \
 			@set -e; \
 			$(rule_$(1)))
 

  reply	other threads:[~2005-01-17 22:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-17 21:40 H. Peter Anvin
2005-01-17 22:00 ` Sam Ravnborg [this message]
2005-01-17 22:03   ` H. Peter Anvin
2005-01-17 22:13     ` Sam Ravnborg
2005-01-17 22:47       ` H. Peter Anvin
2005-01-18 19:05     ` Sam Ravnborg
2005-01-18 19:35       ` H. Peter Anvin
2005-01-19  1:26         ` Matt Mackall
2005-01-19  3:35           ` H. Peter Anvin
2005-01-19  4:42             ` Marcin Dalecki
2005-01-29 21:26     ` Sam Ravnborg
2005-01-30  1:17       ` H. Peter Anvin
     [not found] <fa.e2phu9o.1c30pig@ifi.uio.no>
     [not found] ` <fa.gakt9b5.1klcr9h@ifi.uio.no>
2005-01-19 16:09   ` Bodo Eggert
2005-01-19 16:35     ` linux-os
2005-01-19 17:15       ` Sytse Wielinga

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=20050117220052.GB18293@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®