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
This commit is contained in:
Adam Azarchs 2022-06-07 17:20:48 -07:00 committed by GitHub
parent 0320f517fd
commit 2ba8acf786
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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": [