From 89b59994eb44b5cd2fac594144c20c63fd05ef25 Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Sat, 9 Jun 2018 09:11:24 +0100 Subject: [PATCH] build: ASLR hardening use $(FPIC) Signed-off-by: Kevin Darbyshire-Bryant --- include/hardening.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hardening.mk b/include/hardening.mk index 06a61789ef..42ce1f56b5 100644 --- a/include/hardening.mk +++ b/include/hardening.mk @@ -18,7 +18,7 @@ ifdef CONFIG_PKG_CHECK_FORMAT_SECURITY endif ifdef CONFIG_PKG_ASLR_PIE ifeq ($(strip $(PKG_ASLR_PIE)),1) - TARGET_CFLAGS += -fPIC + TARGET_CFLAGS += $(FPIC) TARGET_LDFLAGS += -specs=$(INCLUDE_DIR)/hardened-ld-pie.specs endif endif -- 2.25.1