Allow building the `singlejar` tool on OpenBSD.
Without this change, the build fails with the following error. Thus, building deploy JARs is impossible.
```
ld: error: undefined symbol: ceilf
>>> referenced by output_jar.cc
```
@@ -338,6 +338,12 @@ config_setting(
visibility = ["//visibility:public"],
)
+config_setting(
+ name = "openbsd",
+ values = {"cpu": "openbsd"},
+ visibility = ["//visibility:public"],
+)
+
alias(
name = "singlejar",
actual = select({
@@ -633,6 +639,7 @@ cc_binary(
copts = SUPRESSED_WARNINGS,
linkopts = select({
":freebsd": ["-lm"],
+ ":openbsd": ["-lm"],
"//conditions:default": [],
}),
linkstatic = 1,
@@ -655,6 +662,7 @@ cc_binary(
copts = SUPRESSED_WARNINGS,
linkopts = select({
":freebsd": ["-lm"],
+ ":openbsd": ["-lm"],
"//conditions:default": [],
}),
linkstatic = 1,
