Skip to content

Commit 8cd3591

Browse files
Bryan C. Millsgopherbot
authored andcommitted
_content/doc: mention cgo requirements for external linking in release notes for Go 1.21 and 1.22
Fixes golang/go#65887. Updates golang/go#31544. Updates golang/go#46330. Updates golang/go#64875. Change-Id: Ibb035e2287ad0efdbe875c5dd16ffd938ec7a956 Reviewed-on: https://go-review.googlesource.com/c/website/+/569296 Reviewed-by: Cherry Mui <[email protected]> Auto-Submit: Bryan Mills <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 29629ec commit 8cd3591

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

_content/doc/go1.21.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ The `go` `test` `-o` flag now
205205
accepts a directory argument, in which case test binaries are written to that
206206
directory instead of the current directory.
207207

208+
<!-- https://go.dev/issue/31544, CL 477839 -->
209+
When using an external (C) linker with cgo enabled, the `runtime/cgo` package is
210+
now supplied to the Go linker as an additional dependency to ensure that the Go
211+
runtime is compatible with any additional libraries added by the C linker.
212+
208213
### Cgo {#cgo}
209214

210215
<!-- CL 490819 -->

_content/doc/go1.22.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,14 @@ <h3 id="go-command">Go command</h3>
125125
will continue to report that there are no test files.
126126
</p>
127127

128+
<!-- CL 522239, https://go.dev/issue/46330 -->
129+
<p>
130+
<code>go</code> build commands that invoke the linker now error out if an
131+
external (C) linker will be used but cgo is not enabled. (The Go runtime
132+
requires cgo support to ensure that it is compatible with any additional
133+
libraries added by the C linker.)
134+
</p>
135+
128136

129137
<h3 id="trace">Trace</h3>
130138

0 commit comments

Comments
 (0)