kbuild: explicit turn off gcc stack-protector
Ubuntu has enabled -fstack-protector per default in gcc breaking kernel build. Explicit turn it off for now. Later we may decide to make it configurable if the kernel starts to support it. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
701842e3bd
commit
34c162f79e
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -309,6 +309,9 @@ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
|
||||||
|
|
||||||
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
||||||
-fno-strict-aliasing -fno-common
|
-fno-strict-aliasing -fno-common
|
||||||
|
# Force gcc to behave correct even for buggy distributions
|
||||||
|
CFLAGS += $(call cc-option, -fno-stack-protector-all \
|
||||||
|
-fno-stack-protector)
|
||||||
AFLAGS := -D__ASSEMBLY__
|
AFLAGS := -D__ASSEMBLY__
|
||||||
|
|
||||||
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
|
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
|
||||||
|
|
Loading…
Add table
Reference in a new issue