]> err.no Git - linux-2.6/commitdiff
kbuild: -fno-stack-protector is not good
authorSam Ravnborg <sam@mars.ravnborg.org>
Thu, 13 Jul 2006 18:27:27 +0000 (20:27 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Tue, 1 Aug 2006 09:32:46 +0000 (11:32 +0200)
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 <sam@ravnborg.org>
Makefile

index c1348ef020ca6d0b1f0a84f88bef743a20e34fbd..110db856e966a046abfe85268563b866298cb75b 100644 (file)
--- 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)