From: Alex Brainman Date: Fri, 28 Oct 2016 00:51:22 +0000 (+1100) Subject: runtime/cgo: do not link threads lib by default on windows X-Git-Tag: go1.8beta1~536 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f595848e9a1e1d0f64a7018d847167d85f6e83a4;p=gostls13.git runtime/cgo: do not link threads lib by default on windows I do not know why it is included. All tests pass without it. Change-Id: I839076ee131816dfd177570a902c69fe8fba5022 Reviewed-on: https://go-review.googlesource.com/32144 Run-TryBot: Minux Ma TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/cgo/cgo.go b/src/runtime/cgo/cgo.go index b21458fb7e..241a821e4f 100644 --- a/src/runtime/cgo/cgo.go +++ b/src/runtime/cgo/cgo.go @@ -20,7 +20,6 @@ package cgo #cgo !android,linux LDFLAGS: -lpthread #cgo netbsd LDFLAGS: -lpthread #cgo openbsd LDFLAGS: -lpthread -#cgo windows LDFLAGS: -mthreads #cgo CFLAGS: -Wall -Werror