mirror of
https://github.com/aya-rs/aya.git
synced 2026-03-03 18:23:55 +01:00
Add integration tests to verify that btf_maps generated with the generalized btf_map_def macro are compatible with libbpf's bpf_map_def. Also add CI infrastructure for macOS cross-compilation to Linux musl, including stub headers and autoconf cache variables for libbpf-sys vendored dependencies.
9 lines
320 B
Bash
Executable File
9 lines
320 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
set -eux
|
|
|
|
# Wrapper to override AR/RANLIB for cross-compilation from macOS to Linux musl.
|
|
# zlib's configure sets AR=libtool on Darwin (Mach-O format, not ELF).
|
|
# See https://github.com/madler/zlib/issues/331
|
|
exec /usr/bin/make AR=x86_64-linux-musl-ar ARFLAGS=rcs RANLIB=x86_64-linux-musl-ranlib "$@"
|