mirror of
https://github.com/fw876/helloworld.git
synced 2026-12-05 08:01:07 +00:00
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 <coolsnowwolf@gmail.com>
This commit is contained in:
1 parent
6fbc9f563c
commit
fa29e87710
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user