From e7d9c865036d7bc2ac30604e8573f25ae601aed1 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 23 Mar 2023 09:27:01 +0100 Subject: treewide: refactor to use PKG_BUILD_FLAGS:=lto See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS" on the main repository. Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This fixes it and properly enables LTO. Signed-off-by: Andre Heider --- net/microsocks/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net/microsocks/Makefile') diff --git a/net/microsocks/Makefile b/net/microsocks/Makefile index e16e577b3..82abec56a 100644 --- a/net/microsocks/Makefile +++ b/net/microsocks/Makefile @@ -12,6 +12,8 @@ PKG_MAINTAINER:=Mateusz Korniak PKG_LICENSE:=MIT PKG_LICENSE_FILES:=COPYING +PKG_BUILD_FLAGS:=lto + include $(INCLUDE_DIR)/package.mk define Package/microsocks @@ -30,8 +32,7 @@ define Package/microsocks/conffiles /etc/config/microsocks endef -TARGET_CFLAGS+= -flto -TARGET_LDFLAGS+= -flto -Wl,--gc-sections,--as-needed +TARGET_LDFLAGS+= -Wl,--gc-sections,--as-needed define Package/microsocks/install $(INSTALL_DIR) $(1)/usr/bin -- cgit v1.2.3