diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-01-08 19:58:51 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-01-08 19:58:51 +0100 |
commit | ad14336de8e9cddae9ed29d45bd2e97abb72eaf9 (patch) | |
tree | 1846c6ca5ecc98a1ab324d9a3a97873067450f7a /Documentation/kbuild/makefiles.txt | |
parent | 442ce844e139c1e3c23e8b4df13468041ae35721 (diff) | |
download | talos-obmc-linux-ad14336de8e9cddae9ed29d45bd2e97abb72eaf9.tar.gz talos-obmc-linux-ad14336de8e9cddae9ed29d45bd2e97abb72eaf9.zip |
kbuild: remove GCC_VERSION
This was causing some ordering problems. Remove the up-front evaluation
and just revaluate the compiler version each time we need it.
(The up-front evaluation was problematic because some architectures modify
the value of $(CC)).
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Documentation/kbuild/makefiles.txt')
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index d802ce88bedc..443230b43e09 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt @@ -1033,9 +1033,9 @@ When kbuild executes the following steps are followed (roughly): Example: #arch/i386/Makefile - GCC_VERSION := $(call cc-version) cflags-y += $(shell \ - if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;) + if [ $(call cc-version) -ge 0300 ] ; then \ + echo "-mregparm=3"; fi ;) In the above example -mregparm=3 is only used for gcc version greater than or equal to gcc 3.0. |