defs.mk: Add support for stack protector

This commit is contained in:
Jan Lindemann 2005-05-13 09:09:18 +00:00 committed by Jan Lindemann
commit 003b426aa9

View file

@ -315,6 +315,10 @@ ifeq ($(USE_COMPILER_OPTIMIZATION_OPTS),true)
PROJECT_CPPFLAGS += -funroll-loops -O3
endif
ifeq ($(USE_STACK_PROTECTOR),true)
PROJECT_CFLAGS += -fstack-protector-all
PROJECT_CFLAGS += -fstack-protector
endif
ifneq ($(wildcard $(TOPDIR)/make/local.mk),)
include $(TOPDIR)/make/local.mk