From fa29e87710fef1c2eeb7c38bcca62996f0798ef2 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Tue, 17 Nov 2026 13:18:18 +0800 Subject: [PATCH] xray-core: allow Cronet archive linker flag in cgo Allow the exact -l:libcronet.a flag when Naive outbound is enabled to fix builds with Go 1.27.4. Bump the package release. Signed-off-by: coolsnowwolf --- xray-core/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xray-core/Makefile b/xray-core/Makefile index 24ff34b5..3e382c14 100644 --- a/xray-core/Makefile +++ b/xray-core/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xray-core PKG_VERSION:=26.11.9 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/XTLS/Xray-core/tar.gz/v$(PKG_VERSION)? @@ -37,6 +37,8 @@ CRONET_CLANG_DIR:=$(PKG_BUILD_DIR)/.cronet-clang ifeq ($(CONFIG_XRAY_CORE_NAIVE),y) GO_PKG_TAGS+=with_naive_outbound + # Cronet selects its static archive by filename, which cgo rejects by default. + GO_PKG_VARS+=CGO_LDFLAGS_ALLOW='-l:libcronet[.]a' ifeq ($(CONFIG_USE_MUSL),y) GO_PKG_TAGS+=with_musl endif