libgo patch committet: Don't collect package CGOLDFLAGS

1 view
Skip to first unread message

Ian Lance Taylor

unread,
Jul 20, 2023, 3:29:39 PM7/20/23
to gcc-patches, gofrontend-dev
This libgo patch to the go command sources stops collecting package
CGOLDFLAGS when using gccgo. The flags 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.

This is for https://go.dev/issue/60287.

Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed
to mainline.

Ian
patch.txt
Reply all
Reply to author
Forward
0 new messages