Fix build with CLANG, avoid GCC only CFLAGS
Commit 7c8d331fbb
"Fine-tune compiler flags" added CFLAGS that are not
existing on CLANG hence breaking building coreboot with clang.
Fixes: https://ticket.coreboot.org/issues/134
Change-Id: Ie0250e285b0c5a9f8ee2eb99401aeca875d2789a
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/21202
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Damien Zammit <damien@zamaudio.com>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
adb026f76a
commit
1db500c101
|
@ -363,7 +363,9 @@ CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
|
|||
CFLAGS_common += -Wstrict-aliasing -Wshadow -Wdate-time
|
||||
CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
|
||||
CFLAGS_common += -ffunction-sections -fdata-sections -fno-pie
|
||||
ifeq ($(CONFIG_COMPILER_GCC),y)
|
||||
CFLAGS_common += -fno-delete-null-pointer-checks -fconserve-stack
|
||||
endif
|
||||
|
||||
ADAFLAGS_common += -gnatg -gnatp
|
||||
ADAFLAGS_common += -Wuninitialized -Wall -Werror
|
||||
|
|
Loading…
Reference in New Issue