From f7d2ebfe3784ab793c1db0d7bb6bbf98b7dbc064 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 5 Jun 2025 21:37:53 +0800 Subject: [PATCH] golang: Fix host build compatibility with GCC 15 Fixes https://github.com/openwrt/packages/issues/26446. Signed-off-by: Jeffery To --- lang/golang/golang/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/golang/golang/Makefile b/lang/golang/golang/Makefile index 91bc80ee35..a35c2c01f7 100644 --- a/lang/golang/golang/Makefile +++ b/lang/golang/golang/Makefile @@ -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, \ -- 2.30.2