mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
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>
This commit is contained in:
parent
e4d7e7b3e4
commit
bcdf600fc5
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=lldpd
|
PKG_NAME:=lldpd
|
||||||
PKG_VERSION:=1.0.9
|
PKG_VERSION:=1.0.9
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd
|
PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd
|
||||||
@ -111,6 +111,6 @@ CONFIGURE_ARGS += \
|
|||||||
$(if $(CONFIG_USE_GLIBC),,--without-libbsd)
|
$(if $(CONFIG_USE_GLIBC),,--without-libbsd)
|
||||||
|
|
||||||
TARGET_CFLAGS += -flto
|
TARGET_CFLAGS += -flto
|
||||||
TARGET_LDFLAGS += -flto
|
TARGET_LDFLAGS += -flto -Wl,--gc-sections,--as-needed
|
||||||
|
|
||||||
$(eval $(call BuildPackage,lldpd))
|
$(eval $(call BuildPackage,lldpd))
|
||||||
|
Loading…
Reference in New Issue
Block a user