Skip to content

Commit

Permalink
Use the correct soname for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Sep 7, 2020
1 parent ddcf63b commit 540de67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ impl Target {
let os = &self.os;
let env = &self.env;

if os == "linux" || os == "freebsd" || os == "dragonfly" || os == "netbsd" {
if os == "android" {
lines.push(format!("-Wl,-soname,lib{}.so", lib_name));
} else if os == "linux" || os == "freebsd" || os == "dragonfly" || os == "netbsd" {
lines.push(format!("-Wl,-soname,lib{}.so.{}", lib_name, major));
} else if os == "macos" {
let line = format!("-Wl,-install_name,{1}/lib{0}.{2}.{3}.{4}.dylib,-current_version,{2}.{3}.{4},-compatibility_version,{2}",
Expand Down

0 comments on commit 540de67

Please sign in to comment.