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:
parent
0320f517fd
commit
2ba8acf786
@ -120,15 +120,10 @@ cc_library(
|
|||||||
linkopts = select({
|
linkopts = select({
|
||||||
":qnx": ["-lregex"],
|
":qnx": ["-lregex"],
|
||||||
":windows": [],
|
":windows": [],
|
||||||
":freebsd": [
|
"//conditions:default": [
|
||||||
"-lm",
|
"-lm",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
":openbsd": [
|
|
||||||
"-lm",
|
|
||||||
"-pthread",
|
|
||||||
],
|
|
||||||
"//conditions:default": ["-pthread"],
|
|
||||||
}),
|
}),
|
||||||
deps = select({
|
deps = select({
|
||||||
":has_absl": [
|
":has_absl": [
|
||||||
|
Loading…
Reference in New Issue
Block a user