diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-06-21 11:50:25 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-06-23 22:11:34 +0000 |
commit | 295419d0b446bd8e7310966be561c9196d92dc5a (patch) | |
tree | 5c731b6cb7152290bc035540afed364e127178c0 | |
parent | c11f6c4929efff3ef02aff9a3de9c0f4799bc276 (diff) | |
download | go-295419d0b446bd8e7310966be561c9196d92dc5a.tar.gz go-295419d0b446bd8e7310966be561c9196d92dc5a.zip |
runtime/cgo: on Solaris link against -lxnet
Fixes #32205
Change-Id: If5b1d32a5e19ff5d9337862c07fb77890d19d69f
Reviewed-on: https://go-review.googlesource.com/c/go/+/183379
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-rw-r--r-- | src/runtime/cgo/cgo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/cgo/cgo.go b/src/runtime/cgo/cgo.go index eb11c0e100..5a2b5e4271 100644 --- a/src/runtime/cgo/cgo.go +++ b/src/runtime/cgo/cgo.go @@ -21,6 +21,7 @@ package cgo #cgo netbsd LDFLAGS: -lpthread #cgo openbsd LDFLAGS: -lpthread #cgo aix LDFLAGS: -Wl,-berok +#cgo solaris LDFLAGS: -lxnet #cgo CFLAGS: -Wall -Werror |