Closed kxxt closed 3 months ago
Allow downstream users to pass extra compiler flags via LIBBPF_SYS_EXTRA_CFLAGS environment variable when vendoring libbpf, libz or libelf.
LIBBPF_SYS_EXTRA_CFLAGS
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"
LIBBPF_SYS_EXTRA_CFLAGS="-I $(pwd)/aarch64/usr/include"
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"