aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-07-13 14:27:27 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-08-01 05:32:46 -0400
commiteb2cafa1d9026ced051601053885e260f8b8c099 (patch)
treec336614788127bb9be1dbf4c1d35f9966bd67217
parent0463f3c7a353e4d082e825f01e2862ca0f7b34ce (diff)
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 c1348ef020ca..110db856e966 100644
--- a/Makefile
+++ b/Makefile
@@ -310,8 +310,8 @@ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
310CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 310CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
311 -fno-strict-aliasing -fno-common 311 -fno-strict-aliasing -fno-common
312# Force gcc to behave correct even for buggy distributions 312# Force gcc to behave correct even for buggy distributions
313CFLAGS += $(call cc-option, -fno-stack-protector-all \ 313CFLAGS += $(call cc-option, -fno-stack-protector)
314 -fno-stack-protector) 314
315AFLAGS := -D__ASSEMBLY__ 315AFLAGS := -D__ASSEMBLY__
316 316
317# Read KERNELRELEASE from include/config/kernel.release (if it exists) 317# Read KERNELRELEASE from include/config/kernel.release (if it exists)