blob: b22bc77eb96418655389449f2eb4856220ac55ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
2010-03-31 Magnus Granberg <zorry@gentoo.org>
#312335
arch/x86/Makefile: Add KBUILD_CPPFLAGS to the SSP test
commandline for else it build that file with -fPIE
--- a/arch/x86/Makefile 2010-03-31 16:39:32.000000000 +0200
+++ b/arch/x86/Makefile 2010-03-31 16:36:53.000000000 +0200
@@ -74,7 +74,7 @@
ifdef CONFIG_CC_STACKPROTECTOR
cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh
- ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC) $(biarch)),y)
+ ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC) $(KBUILD_CPPFLAGS) $(biarch)),y)
stackp-y := -fstack-protector
KBUILD_CFLAGS += $(stackp-y)
else
|