diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-23 01:03:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-23 01:56:52 +0900 |
| commit | 5c127a70350c19c99bca388c94a4518d885c3ac3 (patch) | |
| tree | 60a6fe0b29894fde62e391f0825d88916c916e08 /internal/rosa/go.go | |
| parent | 8a26521f5b10258f817b69ad71405ff2cba267a8 (diff) | |
internal/rosa: patch header search paths
This removes the need for reference CFLAGS in the standard toolchain.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/go.go')
| -rw-r--r-- | internal/rosa/go.go | 3 |
1 files changed, 2 insertions, 1 deletions
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", |
