aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2017-10-10 11:11:36 -0700
committerGitHub <noreply@github.com>2017-10-10 11:11:36 -0700
commitc4083bb3d1231f8a94f2f000434e38528bdff64a (patch)
tree3ed35d92cfb10217c04c2eeb28c94c5bf5406c2e
parent6032746882ea48ff6d983df8cb77e2ebf399bf0c (diff)
parent68ee9162217867524a7649782c3610e70afdca68 (diff)
downloadprotobuf-c4083bb3d1231f8a94f2f000434e38528bdff64a.tar.gz
protobuf-c4083bb3d1231f8a94f2f000434e38528bdff64a.tar.bz2
protobuf-c4083bb3d1231f8a94f2f000434e38528bdff64a.zip
Merge pull request #3735 from sgreenstein/patch-1
Don't pass -lpthread and -lm on Windows
-rw-r--r--BUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/BUILD b/BUILD
index 7d80e14f..f9221248 100644
--- a/BUILD
+++ b/BUILD
@@ -44,9 +44,11 @@ config_setting(
},
)
-# Android builds do not need to link in a separate pthread library.
+# Android and Windows builds do not need to link in a separate pthread library.
LINK_OPTS = select({
":android": [],
+ ":windows": [],
+ ":windows_msvc": [],
"//conditions:default": ["-lpthread", "-lm"],
})