package/go-bootstrap-stage1: fix builds on GCC 15
GCC 15 defaults to -std=gnu23, which adds the bool keyword, causing conflicts with stage1: https://gcc.gnu.org/gcc-15/porting_to.html#c23-new-keywords As a workaround, force the build to use -std=gnu99 mode. Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com> [Peter: extend commit message] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
d0a7a46813
commit
a2356a9e0a
@@ -17,12 +17,13 @@ HOST_GO_BOOTSTRAP_STAGE1_ROOT = $(HOST_DIR)/lib/go-$(GO_BOOTSTRAP_STAGE1_VERSION
|
||||
|
||||
# The go build system is not compatible with ccache, so use
|
||||
# HOSTCC_NOCCACHE. See https://github.com/golang/go/issues/11685.
|
||||
# CFLAGS and GO_CCFLAGS have no effect, so overwrite CC directly.
|
||||
HOST_GO_BOOTSTRAP_STAGE1_MAKE_ENV = \
|
||||
GOOS=linux \
|
||||
GOROOT_FINAL="$(HOST_GO_BOOTSTRAP_STAGE1_ROOT)" \
|
||||
GOROOT="$(@D)" \
|
||||
GOBIN="$(@D)/bin" \
|
||||
CC=$(HOSTCC_NOCCACHE) \
|
||||
CC="$(HOSTCC_NOCCACHE) -std=gnu99" \
|
||||
CGO_ENABLED=0
|
||||
|
||||
define HOST_GO_BOOTSTRAP_STAGE1_BUILD_CMDS
|
||||
|
||||
Reference in New Issue
Block a user