From: Jason Ish Date: Thu, 27 Feb 2025 17:05:26 +0000 (-0600) Subject: rust: use CBINDGEN variable and not "cbindgen" X-Git-Tag: suricata-8.0.0-beta1~343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05dd607f3415d7f912220c5bf4c6358a225a823b;p=thirdparty%2Fsuricata.git rust: use CBINDGEN variable and not "cbindgen" This uses the cbindgen found during ./configure, and not the one found on the path during "make", which while often the same, aren't always the same. Ticket: #6384 --- diff --git a/rust/Makefile.am b/rust/Makefile.am index f6a8a364e2..c1250a81c0 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -144,7 +144,7 @@ endif if HAVE_CBINDGEN gen/rust-bindings.h: $(RUST_SURICATA_LIB) cbindgen.toml cd $(abs_top_srcdir)/rust && \ - cbindgen --config $(abs_top_srcdir)/rust/cbindgen.toml \ + $(CBINDGEN) --config $(abs_top_srcdir)/rust/cbindgen.toml \ --quiet --verify --output $(abs_top_builddir)/rust/gen/rust-bindings.h || true else gen/rust-bindings.h: @@ -155,7 +155,7 @@ doc: if HAVE_CBINDGEN dist/rust-bindings.h: - cbindgen --config $(abs_top_srcdir)/rust/cbindgen.toml \ + $(CBINDGEN) --config $(abs_top_srcdir)/rust/cbindgen.toml \ --quiet --output $(abs_top_builddir)/rust/dist/rust-bindings.h else dist/rust-bindings.h: