From b4f8c7814a4c1b343f84965407a5a0ae4939a100 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 29 Aug 2016 02:32:12 -0700 Subject: [PATCH] Bazel: link ":brotli_enc" with -lm. While this isn't strictly necessary with recent versions of Bazel (which unconditionally add -lm to linkopts), building Brotli with older versions of Bazel requires -lm to be added explicitly. Signed-off-by: Piotr Sikora --- BUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD b/BUILD index 1c49ceb..31b0b3e 100644 --- a/BUILD +++ b/BUILD @@ -86,6 +86,7 @@ cc_library( srcs = [":enc_sources"], hdrs = [":enc_headers"], copts = STRICT_C_OPTIONS, + linkopts = ["-lm"], deps = [":brotli_common"], )