Commit dc7a0779 authored by Andy Soffer's avatar Andy Soffer
Browse files

Merge pull request #3602 from yesudeep:try-fix-linker-errors-on-freebsd

PiperOrigin-RevId: 402414489
parents b2dda9ed 9e3fb4ea
......@@ -46,6 +46,16 @@ config_setting(
constraint_values = ["@platforms//os:windows"],
)
config_setting(
name = "freebsd",
constraint_values = ["@platforms//os:freebsd"],
)
config_setting(
name = "openbsd",
constraint_values = ["@platforms//os:openbsd"],
)
config_setting(
name = "msvc_compiler",
flag_values = {
......@@ -110,6 +120,8 @@ cc_library(
linkopts = select({
":qnx": ["-lregex"],
":windows": [],
":freebsd": ["-lm", "-pthread"],
":openbsd": ["-lm", "-pthread"],
"//conditions:default": ["-pthread"],
}),
deps = select({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment