From 5c127a70350c19c99bca388c94a4518d885c3ac3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 23 Jan 2026 01:03:16 +0900 Subject: internal/rosa: patch header search paths This removes the need for reference CFLAGS in the standard toolchain. Signed-off-by: Ophestra --- internal/rosa/go.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/rosa/go.go') diff --git a/internal/rosa/go.go b/internal/rosa/go.go index 456cc9c1..d1dca758 100644 --- a/internal/rosa/go.go +++ b/internal/rosa/go.go @@ -31,7 +31,7 @@ rm \ syscall/creds_test.go \ net/multicast_test.go -CC="${CC} ${LDFLAGS}" ./all.bash +CC="cc -Qunused-arguments ${LDFLAGS}" ./all.bash `, pkg.Path(AbsUsrSrc.Append("go1.4-bootstrap"), false, pkg.NewHTTPGetTar( nil, "https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz", mustDecode(checksum), @@ -48,6 +48,7 @@ func (t Toolchain) newGo( return t.New("go"+version, []pkg.Artifact{ boot, }, nil, slices.Concat([]string{ + "CC=cc", "GOCACHE=/tmp/gocache", "GOROOT_BOOTSTRAP=/system/go", "CGO_" + ldflags(false) + " -O2 -g", -- cgit v1.3.1