|
Lines 74-80
Link Here
|
| 74 |
|
74 |
|
| 75 |
ifdef CONFIG_CC_STACKPROTECTOR |
75 |
ifdef CONFIG_CC_STACKPROTECTOR |
| 76 |
cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh |
76 |
cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh |
| 77 |
ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC) $(biarch)),y) |
77 |
ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC) $(KBUILD_CPPFLAGS) $(biarch)),y) |
| 78 |
stackp-y := -fstack-protector |
78 |
stackp-y := -fstack-protector |
| 79 |
KBUILD_CFLAGS += $(stackp-y) |
79 |
KBUILD_CFLAGS += $(stackp-y) |
| 80 |
else |
80 |
else |