summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-06-23 14:38:03 +0000
committerSteven Barth <cyrus@openwrt.org>2015-06-23 14:38:03 +0000
commit2738526a16f9ebd100ac7a35d55b13e91e45e888 (patch)
treee63e9fe54643978c4bd5a3030e6d4fd59948099f /rules.mk
parent2086f7284c63d759071729108e35687c4679b9fc (diff)
downloadmtk-20170518-2738526a16f9ebd100ac7a35d55b13e91e45e888.zip
mtk-20170518-2738526a16f9ebd100ac7a35d55b13e91e45e888.tar.gz
mtk-20170518-2738526a16f9ebd100ac7a35d55b13e91e45e888.tar.bz2
toolchain: add fortify-headers, enable FORTIFY_SOURCE by default
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46117
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index cb0b7da..a0a9a5d 100644
--- a/rules.mk
+++ b/rules.mk
@@ -144,7 +144,7 @@ ifndef DUMP
export GCC_HONOUR_COPTS:=0
TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-)
TARGET_CFLAGS+= -fhonour-copts $(if $(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),,-Wno-error=unused-but-set-variable)
- TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include
+ TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include/fortify -I$(TOOLCHAIN_DIR)/include
TARGET_LDFLAGS+= -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib
TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH)
else