aboutsummaryrefslogtreecommitdiff
path: root/ipv6
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2023-03-23 09:09:13 +0100
committerAndre Heider <a.heider@gmail.com>2023-04-08 08:38:54 +0200
commit35f4ef76e0c88b690ec55f26aed072c4c5989eff (patch)
treec5b36bb3b16488c4546c3c283b8a6020e3966143 /ipv6
parent565866a47210c9711c29173052063779b6d3bcfc (diff)
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 <a.heider@gmail.com>
Diffstat (limited to 'ipv6')
-rw-r--r--ipv6/miredo/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/ipv6/miredo/Makefile b/ipv6/miredo/Makefile
index 9e1390a23..8527db824 100644
--- a/ipv6/miredo/Makefile
+++ b/ipv6/miredo/Makefile
@@ -14,6 +14,7 @@ PKG_CONFIG_DEPENDS:= \
PKG_BUILD_PARALLEL:=1
PKG_CHECK_FORMAT_SECURITY:=0
PKG_INSTALL:=1
+PKG_BUILD_FLAGS:=gc-sections
PKG_MAINTAINER:=
PKG_LICENSE:=GPL-2.0-or-later
@@ -52,11 +53,7 @@ CONFIGURE_VARS += \
ac_cv_header_sys_capability_h=no
TARGET_CFLAGS+= \
- $(FPIC) \
- -ffunction-sections \
- -fdata-sections
-
-TARGET_LDFLAGS += -Wl,--gc-sections
+ $(FPIC)
define Package/miredo/install
$(INSTALL_DIR) $(1)/usr/lib