diff --git a/configure.ac b/configure.ac index 4cbbe7249f..64f94251d2 100644 --- a/configure.ac +++ b/configure.ac @@ -273,7 +273,7 @@ fi echo -n "installation for $host OS... " - RUST_SURICATA_LIBNAME="libsuricata.a" + RUST_SURICATA_LIBNAME="libsuricata_rust.a" e_magic_file="" e_magic_file_comment="#" diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index a0fb8c7abc..214499b1db 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -6,6 +6,7 @@ edition = "2018" [lib] crate-type = ["staticlib", "rlib"] path = "@e_rustdir@/src/lib.rs" +name = "suricata_rust" [profile.release] debug = true diff --git a/rust/Makefile.am b/rust/Makefile.am index f10690a712..10dbb30519 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -45,9 +45,9 @@ else $(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \ --features "$(RUST_FEATURES)" $(RUST_TARGET) endif - if test -e $(RUST_SURICATA_LIBDIR)/suricata.lib; then \ - cp $(RUST_SURICATA_LIBDIR)/suricata.lib \ - $(RUST_SURICATA_LIBDIR)/libsuricata.a; \ + if test -e $(RUST_SURICATA_LIBDIR)/suricata_rust.lib; then \ + cp $(RUST_SURICATA_LIBDIR)/suricata_rust.lib \ + $(RUST_SURICATA_LIBDIR)/${RUST_SURICATA_LIBNAME}; \ fi $(MAKE) gen/rust-bindings.h