rust: rename lib to libsuricata_rust

Previously it was libsuricata.a, but eventually we want to get
to a place where libsuricata.a is a combination of the Rust
and C code.
pull/5866/head
Jason Ish 4 years ago
parent 325096a07f
commit a178ec6bef

@ -273,7 +273,7 @@
fi fi
echo -n "installation for $host OS... " echo -n "installation for $host OS... "
RUST_SURICATA_LIBNAME="libsuricata.a" RUST_SURICATA_LIBNAME="libsuricata_rust.a"
e_magic_file="" e_magic_file=""
e_magic_file_comment="#" e_magic_file_comment="#"

@ -6,6 +6,7 @@ edition = "2018"
[lib] [lib]
crate-type = ["staticlib", "rlib"] crate-type = ["staticlib", "rlib"]
path = "@e_rustdir@/src/lib.rs" path = "@e_rustdir@/src/lib.rs"
name = "suricata_rust"
[profile.release] [profile.release]
debug = true debug = true

@ -45,9 +45,9 @@ else
$(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \ $(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \
--features "$(RUST_FEATURES)" $(RUST_TARGET) --features "$(RUST_FEATURES)" $(RUST_TARGET)
endif endif
if test -e $(RUST_SURICATA_LIBDIR)/suricata.lib; then \ if test -e $(RUST_SURICATA_LIBDIR)/suricata_rust.lib; then \
cp $(RUST_SURICATA_LIBDIR)/suricata.lib \ cp $(RUST_SURICATA_LIBDIR)/suricata_rust.lib \
$(RUST_SURICATA_LIBDIR)/libsuricata.a; \ $(RUST_SURICATA_LIBDIR)/${RUST_SURICATA_LIBNAME}; \
fi fi
$(MAKE) gen/rust-bindings.h $(MAKE) gen/rust-bindings.h

Loading…
Cancel
Save