diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-03-11 15:36:39 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-03-11 15:36:39 +0000 |
commit | 118c1005ed11cab83fcb5c3b0958b72535b7866b (patch) | |
tree | 28c830e8f15e9558c75f1c6365272900f8642741 /src/config/Config.lb | |
parent | 25399346b3371bec44ba432d4c32f8f9c939f658 (diff) | |
download | coreboot-118c1005ed11cab83fcb5c3b0958b72535b7866b.tar.xz |
20090310-2-gcc-for-real:
Create a variable "GCC", which defaults to the content of CC, but allows
the user to provide a gcc to use in this instance, even when normally a
different tool is chosen. That helps with scan-build (see next patch),
and might help with distcc, ccache etc, too.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3995 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/config/Config.lb')
-rw-r--r-- | src/config/Config.lb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/Config.lb b/src/config/Config.lb index 6abef504e4..5a82b41f17 100644 --- a/src/config/Config.lb +++ b/src/config/Config.lb @@ -6,7 +6,8 @@ uses ASSEMBLER_DEBUG makedefine CPP:= $(CC) -x assembler-with-cpp -DASSEMBLY -E makedefine LIBGCC_FILE_NAME := $(shell $(CC) -print-libgcc-file-name) -makedefine GCC_INC_DIR := $(shell LC_ALL=C $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") +makedefine GCC ?= $(CC) +makedefine GCC_INC_DIR := $(shell LC_ALL=C $(GCC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") makedefine CPPFLAGS := -I$(TOP)/src/include -I$(TOP)/src/arch/$(ARCH)/include -I$(GCC_INC_DIR) $(CPUFLAGS) makedefine CFLAGS := $(CPU_OPT) $(DISTRO_CFLAGS) $(CPPFLAGS) -Os -nostdinc -nostdlib -fno-builtin -Wall |