7b0de33070
`res_search` became a proper symbol only in glibc 2.34. Until that it was re-defined in headers, hitting the (in-)famous https://github.com/ziglang/zig/issues/9485 glibc 2.34+: resolv/resolv.h:int res_search (const char *, int, int, unsigned char *, int) Old glibc: resolv/resolv.h:#define res_search __res_search Also, remove the toplevel includes, as they should never be included in the first place: the headers are included explicitly when needed.
23 lines
456 B
Plaintext
23 lines
456 B
Plaintext
load("@bazel-zig-cc//toolchain:defs.bzl", "declare_files")
|
|
load("@bazel-zig-cc//toolchain/private:cc_toolchains.bzl", "declare_cc_toolchains")
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
declare_files(
|
|
os = {os},
|
|
)
|
|
|
|
exports_files([
|
|
"glibc-hacks/fcntl.map",
|
|
"glibc-hacks/fcntl.h",
|
|
"glibc-hacks/res_search.map",
|
|
"glibc-hacks/res_search.h",
|
|
])
|
|
|
|
declare_cc_toolchains(
|
|
os = {os},
|
|
zig_sdk_path = {zig_sdk_path},
|
|
)
|