diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-08-25 02:36:35 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-08-25 02:36:35 +0200 |
commit | 93e66df2f0a1ffded61c38d4517f6ca59303a904 (patch) | |
tree | 06e3133ecbb424f8b316cbb3d544360ea3731733 /Makefile | |
parent | c3ea9b6a3c67a66293d32021d7ecd12e4a220288 (diff) | |
download | history-93e66df2f0a1ffded61c38d4517f6ca59303a904.tar.gz |
kbuild: fix cc-version
cc-version needs to use $(shell to get the gcc version.
Before if gave the following error when building the kernel:
/bin/sh: line 1: [: too many arguments
And all checks for gcc version were broken.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 9366f1eb39a21d..962eda0a501ff8 100644 --- a/Makefile +++ b/Makefile @@ -279,8 +279,8 @@ cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ # cc-version # Usage gcc-ver := $(call cc-version $(CC)) -cc-version = $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ - $(if $(1), $(1), $(CC)) +cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ + $(if $(1), $(1), $(CC))) # Look for make include files relative to root of kernel src |