From: Hauke Mehrtens Date: Thu, 7 Nov 2019 20:06:04 +0000 (+0100) Subject: io: Add TARGET_LDFLAGS to fix PIE X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b46d21a54ee5a073f5d5082e7d90cf07113c8a9a;p=openwrt-packages.git 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 --- diff --git a/utils/io/Makefile b/utils/io/Makefile index c572554d0..b588b3347 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