]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't collect package CGOLDFLAGS when using gccgo
authorIan Lance Taylor <iant@golang.org>
Tue, 23 May 2023 00:55:43 +0000 (17:55 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 20 Jul 2023 18:11:05 +0000 (18:11 +0000)
commitd3e3e11298eff0c113cec303054ec2f45075e95c
tree58047eee728099681c9c743d148c598da16354fb
parent80a7315c3400b011a0f89e63aca73031a9073c9a
cmd/go: don't collect package CGOLDFLAGS when using gccgo

They are already collected via cmd/cgo.

The gccgo_link_c test is tweaked to do real linking as with this
change the cgo ldflags are not fully reflected in go build -n output,
since they now only come from the built archive.

Fixes #60287

Change-Id: Id433435fe8aeb9571327bf936e52a37f400cef4c
Reviewed-on: https://go-review.googlesource.com/c/go/+/497117
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Andrey Bokhanko <andreybokhanko@gmail.com>
src/cmd/go/internal/work/gccgo.go
src/cmd/go/testdata/script/gccgo_link_c.txt