golang: Fix host build compatibility with GCC 15

Fixes https://github.com/openwrt/packages/issues/26446.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
Jeffery To
2025-06-05 21:37:53 +08:00
committed by Josef Schlehofer
parent 08b4fcd5e6
commit f7d2ebfe37

View File

@@ -12,7 +12,7 @@ GO_VERSION_PATCH:=3
PKG_NAME:=golang
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
PKG_RELEASE:=1
PKG_RELEASE:=2
GO_SOURCE_URLS:=https://dl.google.com/go/ \
https://mirrors.ustc.edu.cn/golang/ \
@@ -292,6 +292,7 @@ endef
define Host/Compile
$(call GoCompiler/Bootstrap/Make, \
$(HOST_GO_VARS) \
CC="$(HOSTCC_NOCACHE) -std=gnu17" \
)
$(call GoCompiler/Bootstrap-1.17/Make, \