diff --git a/src/build_targets.rs b/src/build_targets.rs index 47079aa..e9640fd 100644 --- a/src/build_targets.rs +++ b/src/build_targets.rs @@ -148,7 +148,7 @@ impl FileNames { fn from_target(target: &Target, lib_name: &str, targetdir: &Path) -> Option { let (shared_lib, static_lib, impl_lib, debug_info, def) = match target.os.as_str() { "none" | "linux" | "freebsd" | "dragonfly" | "netbsd" | "android" | "haiku" - | "illumos" | "emscripten" => { + | "illumos" | "openbsd" | "emscripten" => { let static_lib = targetdir.join(format!("lib{lib_name}.a")); let shared_lib = targetdir.join(format!("lib{lib_name}.so")); (shared_lib, static_lib, None, None, None) diff --git a/src/install.rs b/src/install.rs index 89c1e1a..b6db6fa 100644 --- a/src/install.rs +++ b/src/install.rs @@ -102,6 +102,7 @@ impl LibType { | ("android", _) | ("haiku", _) | ("illumos", _) + | ("openbsd", _) | ("emscripten", _) => LibType::So, ("macos", _) | ("ios", _) | ("tvos", _) | ("visionos", _) => LibType::Dylib, ("windows", _) => LibType::Windows, diff --git a/src/target.rs b/src/target.rs index 3a070a0..416af28 100644 --- a/src/target.rs +++ b/src/target.rs @@ -87,6 +87,7 @@ impl Target { || os == "netbsd" || os == "haiku" || os == "illumos" + || os == "openbsd" { lines.push(if capi_config.library.versioning { format!("-Wl,-soname,lib{lib_name}.so.{sover}")