|
@@ -74,7 +74,7 @@ endif
|
|
|
|
|
|
ifdef CONFIG_CC_STACKPROTECTOR
|
|
ifdef CONFIG_CC_STACKPROTECTOR
|
|
cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh
|
|
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
|
|
stackp-y := -fstack-protector
|
|
KBUILD_CFLAGS += $(stackp-y)
|
|
KBUILD_CFLAGS += $(stackp-y)
|
|
else
|
|
else
|