GIT 34c162f79e374556dd1384437f0dab558b5dc657 git+ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild.git commit 34c162f79e374556dd1384437f0dab558b5dc657 Author: Sam Ravnborg Date: Sun Jul 2 20:21:49 2006 +0200 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 --- diff --git a/Makefile b/Makefile index 4dcf25d..1cc793f 100644 --- a/Makefile +++ b/Makefile @@ -309,6 +309,9 @@ CPPFLAGS := -D__KERNEL__ $(LINUXI 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) AFLAGS := -D__ASSEMBLY__ # Read KERNELRELEASE from include/config/kernel.release (if it exists)