Skip to content

Commit ff4f0d2

Browse files
committed
rust: set CARGO_ENV when generating ffi bindings
This is required when rustc is not in a standard path. The other cbindgen calls already had this, so it was just missed while adding the ffi bindings, but shows up when rustc is at a path like /usr/lib/rust-1.89/bin/rustc, but that directory is not in your path.
1 parent cad5b81 commit ff4f0d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ endif
192192
if HAVE_CBINDGEN
193193
gen/rust-ffi.h: $(RUST_SURICATA_LIB) ffi/cbindgen.toml
194194
cd $(abs_top_srcdir)/rust/ffi && \
195-
CARGO=$(CARGO) $(CBINDGEN) --config $(abs_top_srcdir)/rust/ffi/cbindgen.toml \
195+
$(CARGO_ENV) CARGO=$(CARGO) $(CBINDGEN) --config $(abs_top_srcdir)/rust/ffi/cbindgen.toml \
196196
--quiet --verify --output $(abs_top_builddir)/rust/gen/rust-ffi.h || true
197197
else
198198
gen/rust-ffi.h:

0 commit comments

Comments
 (0)