From 9ac60181e2e54b6404e67852d6e1e65a8cbd3616 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Mon, 24 Oct 2016 12:04:12 +1100 Subject: [PATCH] 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 --- src/runtime/cgo/cgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1