Skip to content

Commit

Permalink
fix macos build
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Jun 30, 2024
1 parent d405234 commit ee8afee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ fn main() {
println!("cargo:rustc-link-search=native={}", out_path.display());
println!("cargo:rustc-link-lib=static=nostrdb");

// Link Security framework on macOS
if cfg!(target_os = "macos") {
println!("cargo:rustc-link-lib=framework=Security");
}

//
// We only need bindgen when we update the bindings.
// I don't want to complicate the build with it.
Expand Down

0 comments on commit ee8afee

Please sign in to comment.