mosdns/v2dat: enable cgo

* fix build with go1.22
* 079dfdcac0

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-02-26 11:50:11 +08:00
parent 169ae0510c
commit 664253d1e2
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ define Package/mosdns
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
endef
GO_PKG_TARGET_VARS:=$(filter-out CGO_ENABLED=%,$(GO_PKG_TARGET_VARS)) CGO_ENABLED=0
GO_PKG_TARGET_VARS:=$(filter-out CGO_ENABLED=%,$(GO_PKG_TARGET_VARS)) CGO_ENABLED=1
define Package/mosdns/install
$(call GoPackage/Package/Install/Bin,$(1))

View File

@ -36,7 +36,7 @@ define Package/v2dat
DEPENDS:=$(GO_ARCH_DEPENDS)
endef
GO_PKG_TARGET_VARS:=$(filter-out CGO_ENABLED=%,$(GO_PKG_TARGET_VARS)) CGO_ENABLED=0
GO_PKG_TARGET_VARS:=$(filter-out CGO_ENABLED=%,$(GO_PKG_TARGET_VARS)) CGO_ENABLED=1
define Package/v2dat/install
$(call GoPackage/Package/Install/Bin,$(1))