gcc/libgo/go/cmd
Ian Lance Taylor 4e9ed68ee7 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.

This is a backport of https://go.dev/cl/497117 from the main repo.

For golang/go#60287

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/511675
2023-07-20 12:29:11 -07:00
..
buildid libgo: update to Go1.16beta1 release 2020-12-30 15:13:24 -08:00
cgo cmd/cgo: add and use runtime/cgo.Incomplete instead of //go:notinheap 2022-09-22 06:28:19 -07:00
go cmd/go: don't collect package CGOLDFLAGS when using gccgo 2023-07-20 12:29:11 -07:00
gofmt libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
internal libgo: update to Go1.18rc1 release 2022-02-18 13:12:08 -08:00
test2json libgo: update to Go1.16rc1 2021-01-29 11:04:55 -08:00
vendor libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
vet libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00
go.mod libgo: update to Go1.18beta2 2022-02-11 15:01:19 -08:00