aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/lldpd
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2021-04-05 18:48:41 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2021-04-05 18:50:17 +0300
commitbcdf600fc5a1049a4eedaf53de17aa23858215bf (patch)
treeec22a994f1291df80a2ff624553cbc522f963b06 /package/network/services/lldpd
parente4d7e7b3e459e64046625ddd6db9f806c05dfecb (diff)
downloadupstream-bcdf600fc5a1049a4eedaf53de17aa23858215bf.tar.gz
upstream-bcdf600fc5a1049a4eedaf53de17aa23858215bf.tar.bz2
upstream-bcdf600fc5a1049a4eedaf53de17aa23858215bf.zip
lldpd: further size reductions
Size difference on mips_4kec: Before: 120196 After: 120006 Closes https://github.com/openwrt/openwrt/pull/3823 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Suggested-by: Lucian Cristian <lucian.cristian@gmail.com>
Diffstat (limited to 'package/network/services/lldpd')
-rw-r--r--package/network/services/lldpd/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile
index 7b9bcccd4d..920e113e66 100644
--- a/package/network/services/lldpd/Makefile
+++ b/package/network/services/lldpd/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lldpd
PKG_VERSION:=1.0.9
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd
@@ -111,6 +111,6 @@ CONFIGURE_ARGS += \
$(if $(CONFIG_USE_GLIBC),,--without-libbsd)
TARGET_CFLAGS += -flto
-TARGET_LDFLAGS += -flto
+TARGET_LDFLAGS += -flto -Wl,--gc-sections,--as-needed
$(eval $(call BuildPackage,lldpd))