From: Sam Ravnborg Date: Thu, 13 Jul 2006 18:27:27 +0000 (+0200) Subject: kbuild: -fno-stack-protector is not good X-Git-Tag: v2.6.18-rc4~71^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb2cafa1d9026ced051601053885e260f8b8c099;p=karo-tx-linux.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)