From: Ian Lance Taylor Date: Fri, 21 Jun 2019 18:50:25 +0000 (-0700) Subject: runtime/cgo: on Solaris link against -lxnet X-Git-Tag: go1.13beta1~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=295419d0b446bd8e7310966be561c9196d92dc5a;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Tobias Klauser --- 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