From 168c2928f96f00cbbe3b32699becc498b17bcab1 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 7 Nov 2019 21:06:04 +0100 Subject: [PATCH] io: Add TARGET_LDFLAGS to fix PIE Add the OpenWrt TARGET_LDFLAGS to the compile command to activate PIE support for the io tool when it is activated globally in OpenWrt. Signed-off-by: Hauke Mehrtens (cherry-picked from b46d21a54ee5a073f5d5082e7d90cf07113c8a9a) --- utils/io/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/io/Makefile b/utils/io/Makefile index c572554d03..b588b33472 100644 --- a/utils/io/Makefile +++ b/utils/io/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=io -PKG_RELEASE:=3 +PKG_RELEASE:=4 include $(INCLUDE_DIR)/package.mk @@ -25,7 +25,8 @@ define Package/io/description endef define Build/Compile - $(TARGET_CC) $(TARGET_CFLAGS) -Wall $(PKG_BUILD_DIR)/io.c -o $(PKG_BUILD_DIR)/$(PKG_NAME) + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -Wall \ + $(PKG_BUILD_DIR)/io.c -o $(PKG_BUILD_DIR)/$(PKG_NAME) endef define Package/io/install -- 2.30.2