From f595848e9a1e1d0f64a7018d847167d85f6e83a4 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Fri, 28 Oct 2016 11:51:22 +1100 Subject: [PATCH] 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 --- src/runtime/cgo/cgo.go | 1 - 1 file changed, 1 deletion(-) 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 -- 2.48.1