File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,11 @@ The `go` `test` `-o` flag now
205
205
accepts a directory argument, in which case test binaries are written to that
206
206
directory instead of the current directory.
207
207
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
+
208
213
### Cgo {#cgo}
209
214
210
215
<!-- CL 490819 -->
Original file line number Diff line number Diff line change @@ -125,6 +125,14 @@ <h3 id="go-command">Go command</h3>
125
125
will continue to report that there are no test files.
126
126
</ p >
127
127
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
+
128
136
129
137
< h3 id ="trace "> Trace</ h3 >
130
138
You can’t perform that action at this time.
0 commit comments