From: Sam Ravnborg Date: Thu, 13 Jul 2006 18:27:27 +0000 (+0200) Subject: kbuild: -fno-stack-protector is not good X-Git-Tag: firefly_0821_release~33871^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eb2cafa1d9026ced051601053885e260f8b8c099;p=firefly-linux-kernel-4.4.55.git kbuild: -fno-stack-protector is not good Ubuntu gcc has hardcoded -fstack-protector - but does not understand -fno-stack-protector-all. So only try -fno-stack-protector. Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index c1348ef020ca..110db856e966 100644 --- a/Makefile +++ b/Makefile @@ -310,8 +310,8 @@ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -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) +CFLAGS += $(call cc-option, -fno-stack-protector) + AFLAGS := -D__ASSEMBLY__ # Read KERNELRELEASE from include/config/kernel.release (if it exists)