summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-07-13 20:27:27 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2006-08-01 11:32:46 +0200
commiteb2cafa1d9026ced051601053885e260f8b8c099 (patch)
treec336614788127bb9be1dbf4c1d35f9966bd67217
parent0463f3c7a353e4d082e825f01e2862ca0f7b34ce (diff)
downloadlinux-3.10-eb2cafa1d9026ced051601053885e260f8b8c099.tar.gz
linux-3.10-eb2cafa1d9026ced051601053885e260f8b8c099.tar.bz2
linux-3.10-eb2cafa1d9026ced051601053885e260f8b8c099.zip
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 <sam@ravnborg.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c1348ef020c..110db856e96 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)