aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-12-02 12:56:30 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-12-02 19:08:28 +0000
commit4a9654045a9528386f790592b7fe038a2a91e429 (patch)
treedf2b47ddab6e130ecf0c40516eb90fb22a6fa0b9 /third_party/protobuf
parent7b835d97219e40ee92b109fbecd2dc3b37db024c (diff)
Add missing link dependency on libm for protobuf
Fixes compilation on FreeBSD -- Change-Id: Iedaa9e08615b8a52fae6f19c867d419938a08411 Reviewed-on: https://cr.bazel.build/7591 PiperOrigin-RevId: 140838599 MOS_MIGRATED_REVID=140838599
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/3.0.0/BUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/third_party/protobuf/3.0.0/BUILD b/third_party/protobuf/3.0.0/BUILD
index 2e6f89401d..be7694feaf 100644
--- a/third_party/protobuf/3.0.0/BUILD
+++ b/third_party/protobuf/3.0.0/BUILD
@@ -87,7 +87,13 @@ COPTS = [
"-Wno-error=unused-variable",
]
-LINK_OPTS = ["-lpthread"]
+LINK_OPTS = select({
+ "//src:freebsd": [
+ "-lpthread",
+ "-lm",
+ ],
+ "//conditions:default": ["-lpthread"],
+})
cc_library(
name = "protobuf_lite",