diff options
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index dd58a04ef4bc..37f9ef324f2f 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -227,6 +227,10 @@ KBUILD_CPPFLAGS += -DDATAOFFSET=$(if $(dataoffset-y),$(dataoffset-y),0) | |||
227 | 227 | ||
228 | LDFLAGS += -m $(ld-emul) | 228 | LDFLAGS += -m $(ld-emul) |
229 | 229 | ||
230 | ifdef CONFIG_CC_STACKPROTECTOR | ||
231 | KBUILD_CFLAGS += -fstack-protector | ||
232 | endif | ||
233 | |||
230 | ifdef CONFIG_MIPS | 234 | ifdef CONFIG_MIPS |
231 | CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ | 235 | CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ |
232 | egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ | 236 | egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ |