fix: Add -lpthread to link Bazel BUILD options (#189)
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Fri, 25 Nov 2016 09:10:09 +0000 (09:10 +0000)
committerGitHub <noreply@github.com>
Fri, 25 Nov 2016 09:10:09 +0000 (09:10 +0000)
* fix: Add -pthread link option to Bazel BUILD file
* fix: Use -lpthread instead of -pthread

BUILD

diff --git a/BUILD b/BUILD
index c9dc00d..cf85354 100644 (file)
--- a/BUILD
+++ b/BUILD
@@ -40,6 +40,7 @@ cc_library(
     includes = [
         "include",
     ],
+    linkopts = ["-lpthread"],
     visibility = ["//visibility:public"],
 )