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/aircrack-ng/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'net/aircrack-ng/Makefile') diff --git a/net/aircrack-ng/Makefile b/net/aircrack-ng/Makefile index 3333aedd4..1323a0e6b 100644 --- a/net/aircrack-ng/Makefile +++ b/net/aircrack-ng/Makefile @@ -20,6 +20,7 @@ PKG_HASH:=4f0bfd486efc6ea7229f7fbc54340ff8b2094a0d73e9f617e0a39f878999a247 PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 +PKG_BUILD_FLAGS:=gc-sections PKG_MAINTAINER:=Rick Farina @@ -90,15 +91,12 @@ CONFIGURE_ARGS += \ $(if $(CONFIG_AIRCRACK_NG_HWLOC),--enable-hwloc,--disable-hwloc) \ $(if $(CONFIG_AIRCRACK_NG_SQLITE3),--with-sqlite3=$(STAGING_DIR)/usr,--without-sqlite3) -TARGET_CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections -fcommon +TARGET_CFLAGS += -Wall -Wextra -fcommon ifeq ($(CONFIG_AIRCRACK_NG_OPTIMIZE_SPEED),y) TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3 endif -TARGET_LDFLAGS+= \ - -Wl,--gc-sections - define Package/aircrack-ng/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ -- cgit v1.2.3