dns2tcp: enable gc-sections

0777fa3bf8
This commit is contained in:
CATTERY 2024-05-25 22:29:27 +08:00 committed by GitHub
parent 80633306af
commit 9575bd55c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,18 +8,16 @@ PKG_NAME:=dns2tcp
PKG_VERSION:=1.1.1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/zfl9/dns2tcp.git
PKG_SOURCE_DATE:=2024-05-18
PKG_SOURCE_VERSION:=8796f058ee0c578b71e71ed22f07b942339be999
PKG_MIRROR_HASH:=48c1e4c95c39890acc2e219bf76e85ea40aa7369f60c570098e475a16f5462c8
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/zfl9/dns2tcp/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=35251fbe1645601086f21cdbd5a2f75471d812f99ed8017bb05158840456b43c
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_LICENSE:=AGPL-3.0-only
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
PKG_BUILD_FLAGS:=no-mips16 gc-sections lto
include $(INCLUDE_DIR)/package.mk
@ -31,7 +29,7 @@ define Package/dns2tcp
URL:=https://github.com/zfl9/dns2tcp
endef
TARGET_CFLAGS+= $(FPIC) -flto
TARGET_CFLAGS+= $(FPIC)
MAKE_FLAGS+= \
CFLAGS="-std=c99 $(TARGET_CFLAGS)" \
EVCFLAGS="$(TARGET_CFLAGS)"