libbpf / libbpf-sys

Rust bindings to libbpf from the Linux kernel
https://crates.io/crates/libbpf-sys/
BSD 2-Clause "Simplified" License
200 stars 48 forks source link

feat: pass extra cflags via LIBBPF_SYS_EXTRA_CFLAGS #93

Closed kxxt closed 3 months ago

kxxt commented 3 months ago

Allow downstream users to pass extra compiler flags via LIBBPF_SYS_EXTRA_CFLAGS environment variable when vendoring libbpf, libz or libelf.

This could be used to set a custom include path when cross-compiling libbpf-sys. e.g. LIBBPF_SYS_EXTRA_CFLAGS="-I $(pwd)/aarch64/usr/include"