Skip to content

Commit

Permalink
bindgen: try passing in CFLAGS to get all include directories
Browse files Browse the repository at this point in the history
For example, to find npcap on Windows builds which are in a
non-standard location.
  • Loading branch information
jasonish committed Nov 15, 2024
1 parent 2b5cd1b commit 36ca3b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ endif
CARGO_VARS = TOP_BUILDDIR=$(abs_top_builddir) \
TOP_SRCDIR=$(abs_top_srcdir) \
CARGO_TARGET_DIR="$(abs_top_builddir)/rust/target" \
SURICATA_LUA_SYS_HEADER_DST="$(abs_top_builddir)/rust/gen"
SURICATA_LUA_SYS_HEADER_DST="$(abs_top_builddir)/rust/gen" \
CFLAGS="$(CFLAGS)"

all-local: Cargo.toml
mkdir -p $(abs_top_builddir)/rust/gen
Expand Down

0 comments on commit 36ca3b9

Please sign in to comment.