summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2022-12-04 15:43:08 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2022-12-04 15:44:20 +0200
commiteaecc5ea12f4a5ebe309d5654509c0771bbdc2f1 (patch)
tree3906609a8314b769d9837345a6fc94876a5f6561
parent4b96bd591f18bf7c8a3c922d469b81072d1782a2 (diff)
downloadmeli-eaecc5ea12f4a5ebe309d5654509c0771bbdc2f1.zip
melib/notmuch: remove hardcoded major .so version for non linux/macos target_os
Credits to http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/mail/meli/patches/patch-melib_src_backends_notmuch_rs?rev=1.1&content-type=text/x-cvsweb-markup for discovering this.
-rw-r--r--melib/src/backends/notmuch.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/melib/src/backends/notmuch.rs b/melib/src/backends/notmuch.rs
index 16dd6508..81d98e62 100644
--- a/melib/src/backends/notmuch.rs
+++ b/melib/src/backends/notmuch.rs
@@ -309,10 +309,12 @@ impl NotmuchDb {
_is_subscribed: Box<dyn Fn(&str) -> bool>,
event_consumer: BackendEventConsumer,
) -> Result<Box<dyn MailBackend>> {
- #[cfg(not(target_os = "macos"))]
+ #[cfg(target_os = "linux")]
let mut dlpath = "libnotmuch.so.5";
#[cfg(target_os = "macos")]
let mut dlpath = "libnotmuch.5.dylib";
+ #[cfg(not(any(target_os = "linux", target_os = "macos")))]
+ let mut dlpath = "libnotmuch.so";
let mut custom_dlpath = false;
if let Some(lib_path) = s.extra.get("library_file_path") {
dlpath = lib_path.as_str();