]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: rename lib to libsuricata_rust
authorJason Ish <jason.ish@oisf.net>
Thu, 4 Feb 2021 21:41:00 +0000 (15:41 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 16 Feb 2021 17:43:26 +0000 (11:43 -0600)
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.

configure.ac
rust/Cargo.toml.in
rust/Makefile.am

index 4cbbe7249fdb1dc27822f85551aae86484ae8c20..64f94251d241f4b1c8b65358b34f456bacbb8891 100644 (file)
     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="#"
index a0fb8c7abc572c297f4eb945fd46747fd27c265d..214499b1db52c0e68bcff914902fc4e83aff640a 100644 (file)
@@ -6,6 +6,7 @@ edition = "2018"
 [lib]
 crate-type = ["staticlib", "rlib"]
 path = "@e_rustdir@/src/lib.rs"
+name = "suricata_rust"
 
 [profile.release]
 debug = true
index f10690a712281990936054fa3d3a23de64f85366..10dbb3051938a8d34c3e4ceb9f0862b2ece1bb53 100644 (file)
@@ -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