From 2ba8acf786b53d580f07f5c14ee34b2da58fbfb9 Mon Sep 17 00:00:00 2001 From: Adam Azarchs Date: Tue, 7 Jun 2022 17:20:48 -0700 Subject: [PATCH] Use `-lm` on linux as well. Not all compilers on linux add it implicitly. It won't do any harm on those which do. Closes #3878 --- BUILD.bazel | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index ac62251e10..29ca013c05 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -120,15 +120,10 @@ cc_library( linkopts = select({ ":qnx": ["-lregex"], ":windows": [], - ":freebsd": [ + "//conditions:default": [ "-lm", "-pthread", ], - ":openbsd": [ - "-lm", - "-pthread", - ], - "//conditions:default": ["-pthread"], }), deps = select({ ":has_absl": [