[OpenWrt-Devel,3/3] musl: Activate hardening features

Message ID 20190102171835.16763-3-hauke@hauke-m.de
State Rejected
Delegated to: Hauke Mehrtens
Headers show
Series
  • [OpenWrt-Devel,1/3] bzip2: fix hardening build
Related show

Commit Message

Hauke Mehrtens Jan. 2, 2019, 5:18 p.m.
This activates the hardening features controlled over the LDFLAGS

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 toolchain/musl/common.mk | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/toolchain/musl/common.mk b/toolchain/musl/common.mk
index 234709103c..d48212f625 100644
--- a/toolchain/musl/common.mk
+++ b/toolchain/musl/common.mk
@@ -33,6 +33,7 @@  TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS))
 MUSL_CONFIGURE:= \
 	$(TARGET_CONFIGURE_OPTS) \
 	CFLAGS="$(TARGET_CFLAGS)" \
+	LDFLAGS="$(TARGET_LDFLAGS)" \
 	CROSS_COMPILE="$(TARGET_CROSS)" \
 	$(HOST_BUILD_DIR)/configure \
 		--prefix=/ \