diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-03-13 15:42:27 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-03-13 15:42:27 +0000 |
commit | be7f79867e4d989fc9cb7fb9e8b0b8ec55956875 (patch) | |
tree | f5ae688b318dfb7456351bb33a5a30f28bb9dedc /src/config | |
parent | cc46e73a0221d08a30c78adfc568f162cdda407d (diff) |
This, ladies and gentlement, is commit #4000.
Use the (almost) same strict CFLAGS in v2 that we use on v3. And fix a few
include files and missing prototypes. Also, fix up the Config-abuild.lb files
to properly work for cross compiling.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4000 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/Config.lb | 2 | ||||
-rw-r--r-- | src/config/Options.lb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config/Config.lb b/src/config/Config.lb index 5a82b41f17..ae01383030 100644 --- a/src/config/Config.lb +++ b/src/config/Config.lb @@ -10,7 +10,7 @@ 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 +makedefine CFLAGS := $(CPU_OPT) $(DISTRO_CFLAGS) $(CPPFLAGS) -Os -nostdinc -nostdlib -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -Wstrict-aliasing -Wshadow -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer if ASSEMBLER_DEBUG makedefine DEBUG_CFLAGS := -g -dA -fverbose-asm diff --git a/src/config/Options.lb b/src/config/Options.lb index 1ad1ef8ca4..88f57e2879 100644 --- a/src/config/Options.lb +++ b/src/config/Options.lb @@ -146,7 +146,7 @@ define COREBOOT_COMPILER comment "Build compiler" end define COREBOOT_LINKER - default "$(shell $(CC) -Wl,--version 2>&1 | grep version | tail -n 1)" + default "$(shell $(CC) -Wl,--version 2>&1 | grep \" ld\")" export always format "\"%s\"" comment "Build linker" |