From: Hauke Mehrtens Date: Tue, 1 Jan 2019 23:34:18 +0000 (+0100) Subject: toolchain: Include hardening.mk for toolchain build X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=e61061a0886e2d0d6b075d75ae9b53d0a6bc9042;p=openwrt%2Fstaging%2Fdedeckeh.git toolchain: Include hardening.mk for toolchain build This adds the hardening options also to the toolchain build. With this change the /usr/lib/libstdc++.so.6.0.24 library will have stack canaries and the /lib/libgcc_s.so.1 library will have Full RELRO. Signed-off-by: Hauke Mehrtens --- diff --git a/include/toolchain-build.mk b/include/toolchain-build.mk index 883d74d25c..35d8c9380e 100644 --- a/include/toolchain-build.mk +++ b/include/toolchain-build.mk @@ -12,6 +12,7 @@ HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR) BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/hardening.mk HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared