From ad5615737ac6cfc6078d3b905cbfbc9e746e0ebe Mon Sep 17 00:00:00 2001 From: DENG Qingfang Date: Tue, 10 Dec 2019 20:04:47 +0800 Subject: [PATCH] mtr: update to 0.93 Update mtr to 0.93 Add size optimization options ath79 ipk size: 31.9k -> 31.4k Signed-off-by: DENG Qingfang --- net/mtr/Makefile | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/net/mtr/Makefile b/net/mtr/Makefile index ce62d3ccf..b77a7db27 100644 --- a/net/mtr/Makefile +++ b/net/mtr/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mtr -PKG_VERSION:=0.92 -PKG_RELEASE:=6 +PKG_VERSION:=0.93 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://www.bitwizard.nl/mtr/files -PKG_HASH:=f2979db9e2f41aa8e6574e7771767c9afe111d9213814eb47f5e1e71876e4382 +PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr +PKG_HASH:=229c673d637bd7dbb96471623785a47e85da0b1944978200c949994c1e6af10d PKG_MAINTAINER:=Jonathan McCrohan PKG_LICENSE:=GPL-2.0-or-later @@ -23,20 +23,8 @@ PKG_CPE_ID:=cpe:/a:matt_kimball_and_roger_wolff:mtr PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 -PKG_FIXUP:=autoreconf - include $(INCLUDE_DIR)/package.mk -# Creation of .tarball-version is an attempt to make it explicit to configure -# script the program version. See discussions at link [1] for more details -# -# [1] mtr: add autoreconf, https://github.com/openwrt/packages/pull/6962#issuecomment-419156300 -# -define Build/Prepare - $(call Build/Prepare/Default) - echo "$(PKG_VERSION)" >$(PKG_BUILD_DIR)/.tarball-version -endef - define Package/mtr SECTION:=net CATEGORY:=Network @@ -56,6 +44,9 @@ define Package/mtr/description running statistics about each machine. endef +TARGET_CFLAGS += -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed + CONFIGURE_ARGS += \ --without-gtk \ $(call autoconf_bool,CONFIG_IPV6,ipv6)