mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Olaf Hering <olh@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: cc-version not available to change EXTRA_CFLAGS
Date: Sun, 23 Jul 2006 19:51:11 +0200	[thread overview]
Message-ID: <20060723175111.GA22861@mars.ravnborg.org> (raw)
In-Reply-To: <20060719090204.GA4980@suse.de>

On Wed, Jul 19, 2006 at 11:02:04AM +0200, Olaf Hering wrote:
>  On Sat, Jan 21, Olaf Hering wrote:
> 
> > 
> > I want to add a gcc version check for reiserfs, on akpms request.
> 
> This debug patch still doesnt work in 2.6.18-rc2:
> 
> 
> make -kj 14 O=$O
> 
> scripts/gcc-version.sh: line 11: _c_flags: command not found
> scripts/gcc-version.sh: line 12: _c_flags: command not found
> + '[' 0000 -lt 0500 ']'
> + echo -O1

Fixed by following patch. Please consider using: cc-ifversion (see
Documentation/kbuild/makefiles.txt

	Sam

commit 045cfddb5f89722259c90fb742e201d289d94092
Author: Sam Ravnborg <sam@mars.ravnborg.org>
Date:   Sun Jul 23 19:49:45 2006 +0200

    kbuild: always use $(CC) for $(call cc-version)
    
    The possibility to specify an optional parameter did not work out as
    expected and it was not used - so remove the possibility.
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 7a18353..dbb20a6 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -81,8 +81,7 @@ cc-option-align = $(subst -functions=0,,
 
 # cc-version
 # Usage gcc-ver := $(call cc-version, $(CC))
-cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \
-              $(if $(1), $(1), $(CC)))
+cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
 
 # cc-ifversion
 # Usage:  EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)

  reply	other threads:[~2006-07-23 17:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-21 18:08 Olaf Hering
2006-01-21 22:12 ` Sam Ravnborg
2006-01-21 22:21   ` Olaf Hering
2006-01-21 22:57 ` Sam Ravnborg
2006-01-21 23:15   ` Olaf Hering
2006-01-21 23:25     ` Sam Ravnborg
2006-01-23 11:02       ` Olaf Hering
2006-02-10 19:47   ` Olaf Hering
2006-02-18  9:03     ` Sam Ravnborg
2006-07-19  9:02 ` Olaf Hering
2006-07-23 17:51   ` Sam Ravnborg [this message]
2006-01-21 19:07 Andrey Borzenkov
2006-01-21 19:11 ` Olaf Hering
2006-01-21 19:47   ` Andrey Borzenkov
2006-01-21 21:07     ` Olaf Hering
2006-01-21 22:51 ` Jan Engelhardt
2006-01-21 23:00 ` Sam Ravnborg

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=20060723175111.GA22861@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olh@suse.de \
    /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®