rust: pass CC to to cargo

This is required for crates that use a C compiler to use the same one as
used by Suricata. Important for cross compiling.

Also pass AR and RANLIB which are often used for cross compiling.
pull/13331/head
Jason Ish 1 year ago committed by Victor Julien
parent 9781f207f7
commit 005cec693f

@ -61,6 +61,7 @@ CARGO_ENV += LOCALSTATEDIR=$(e_localstatedir)
all-local: Cargo.toml
mkdir -p $(abs_top_builddir)/rust/gen
cd $(abs_top_srcdir)/rust && \
CC="$(CC)" AR="$(AR)" RANLIB="$(RANLIB)"\
$(CARGO_ENV) \
$(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \
--features "$(RUST_FEATURES)" $(RUST_TARGET)

Loading…
Cancel
Save