diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2021-04-05 18:30:45 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2021-04-05 18:50:11 +0300 |
commit | e4d7e7b3e459e64046625ddd6db9f806c05dfecb (patch) | |
tree | 7c7ebd18b241ef450126d7bfbc3f5f127f46f447 /package/network | |
parent | 8946be0ab568f7321c6c932ce94593ca52cd51cd (diff) | |
download | upstream-e4d7e7b3e459e64046625ddd6db9f806c05dfecb.tar.gz upstream-e4d7e7b3e459e64046625ddd6db9f806c05dfecb.tar.bz2 upstream-e4d7e7b3e459e64046625ddd6db9f806c05dfecb.zip |
lldpd: enable LTO
Size difference on mips_4kec:
W/o LTO: 139674
W/ LTO: 120196
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Suggested-by: Lucian Cristian <lucian.cristian@gmail.com>
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/lldpd/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile index 5f5ff89740..7b9bcccd4d 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:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd @@ -110,4 +110,7 @@ CONFIGURE_ARGS += \ $(if $(CONFIG_LLDPD_WITH_SNMP),--with-snmp,) \ $(if $(CONFIG_USE_GLIBC),,--without-libbsd) +TARGET_CFLAGS += -flto +TARGET_LDFLAGS += -flto + $(eval $(call BuildPackage,lldpd)) |