Skip to content

Commit

Permalink
Use -lm on linux as well.
Browse files Browse the repository at this point in the history
Not all compilers on linux add it implicitly.
It won't do any harm on those which do.

Closes google#3878
  • Loading branch information
adam-azarchs authored Jun 8, 2022
1 parent 0320f51 commit 2ba8acf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 2ba8acf

Please sign in to comment.