Fix linker errors on FreeBSD.
This commit is contained in:
parent
075810f7a2
commit
9e3fb4ea94
12
BUILD.bazel
12
BUILD.bazel
@ -46,6 +46,16 @@ config_setting(
|
|||||||
constraint_values = ["@platforms//os:windows"],
|
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(
|
config_setting(
|
||||||
name = "msvc_compiler",
|
name = "msvc_compiler",
|
||||||
flag_values = {
|
flag_values = {
|
||||||
@ -110,6 +120,8 @@ cc_library(
|
|||||||
linkopts = select({
|
linkopts = select({
|
||||||
":qnx": ["-lregex"],
|
":qnx": ["-lregex"],
|
||||||
":windows": [],
|
":windows": [],
|
||||||
|
":freebsd": ["-lm", "-pthread"],
|
||||||
|
":openbsd": ["-lm", "-pthread"],
|
||||||
"//conditions:default": ["-pthread"],
|
"//conditions:default": ["-pthread"],
|
||||||
}),
|
}),
|
||||||
deps = select({
|
deps = select({
|
||||||
|
Loading…
Reference in New Issue
Block a user