From 35f4ef76e0c88b690ec55f26aed072c4c5989eff Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 23 Mar 2023 09:09:13 +0100 Subject: treewide: refactor to use PKG_BUILD_FLAGS:=gc-sections See commit da370098 "treewide: add support for "gc-sections" in PKG_BUILD_FLAGS" on the main repository. Note: This only touches packages which use all three parts (-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by this build flag. Some packages only use a subset, and these are left unchanged for now. Signed-off-by: Andre Heider --- net/aria2/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net/aria2/Makefile') diff --git a/net/aria2/Makefile b/net/aria2/Makefile index 726ca35d6..5004eff42 100644 --- a/net/aria2/Makefile +++ b/net/aria2/Makefile @@ -15,6 +15,7 @@ PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_V PKG_HASH:=58d1e7608c12404f0229a3d9a4953d0d00c18040504498b483305bcb3de907a5 PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 +PKG_BUILD_FLAGS:=gc-sections PKG_MAINTAINER:=Imre Kaloz , \ Hsing-Wang Liao @@ -83,8 +84,8 @@ CONFIGURE_ARGS += \ --without-libuv \ --with-libz -TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto -TARGET_LDFLAGS += -Wl,--gc-sections -flto +TARGET_CXXFLAGS += -flto +TARGET_LDFLAGS += -flto define Package/aria2/conffiles /etc/config/aria2 -- cgit v1.2.3