From 05dd607f3415d7f912220c5bf4c6358a225a823b Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 27 Feb 2025 11:05:26 -0600 Subject: [PATCH] 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 --- rust/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.47.2