Merge pull request #3602 from yesudeep:try-fix-linker-errors-on-freebsd
PiperOrigin-RevId: 402414489
This commit is contained in:
commit
72c6c09b0e
12
BUILD.bazel
12
BUILD.bazel
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user