From: Alex Brainman Date: Mon, 24 Oct 2016 01:04:12 +0000 (+1100) Subject: runtime/cgo: do not link math lib by default on windows X-Git-Tag: go1.8beta1~703 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9ac60181e2e54b6404e67852d6e1e65a8cbd3616;p=gostls13.git runtime/cgo: do not link math lib by default on windows Makes windows same as others. Change-Id: Ib4651e06d0bd37473ac345d36c91f39aa8f5e662 Reviewed-on: https://go-review.googlesource.com/31791 Reviewed-by: Ian Lance Taylor Reviewed-by: Minux Ma Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/cgo/cgo.go b/src/runtime/cgo/cgo.go index c94dd0f5bc..b21458fb7e 100644 --- a/src/runtime/cgo/cgo.go +++ b/src/runtime/cgo/cgo.go @@ -20,7 +20,7 @@ package cgo #cgo !android,linux LDFLAGS: -lpthread #cgo netbsd LDFLAGS: -lpthread #cgo openbsd LDFLAGS: -lpthread -#cgo windows LDFLAGS: -lm -mthreads +#cgo windows LDFLAGS: -mthreads #cgo CFLAGS: -Wall -Werror