8d1e1c9fa6
On linux_aarch64 `res_search` is `__res_search@GLIBC_2.17`, which is different from the x86_64 counterpart `__res_search@GLIBC_2.2.5`. Also fix tests.
23 lines
610 B
Python
23 lines
610 B
Python
load("@bazel-zig-cc//rules:platform.bzl", "platform_binary")
|
|
|
|
cc_binary(
|
|
name = "main",
|
|
srcs = ["main.c"],
|
|
)
|
|
|
|
[
|
|
(
|
|
platform_binary(
|
|
name = "main_{}".format(name),
|
|
src = "main",
|
|
platform = platform,
|
|
),
|
|
)
|
|
for name, platform in [
|
|
("linux_amd64_musl", "//libc_aware/platform:linux_amd64_musl"),
|
|
("linux_amd64_gnu.2.19", "//libc_aware/platform:linux_amd64_gnu.2.19"),
|
|
("linux_amd64_gnu.2.28", "//libc_aware/platform:linux_amd64_gnu.2.28"),
|
|
("linux_arm64_musl", "//libc_aware/platform:linux_arm64_musl"),
|
|
]
|
|
]
|