Skip to content

Commit

Permalink
Fix building for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
scrogson committed Nov 7, 2023
1 parent efecafd commit f8ddacd
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions native/siwe_native/.cargo/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
[target.'cfg(target_os = "macos")']
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

# See https://github.com/rust-lang/rust/issues/59302
[target.x86_64-unknown-linux-musl]
rustflags = [
"-C", "target-feature=-crt-static"
]

[target.aarch64-unknown-linux-musl]
rustflags = [
"-C", "target-feature=-crt-static"
]

# Provides a small build size, but takes more time to build.
[profile.release]
lto = true

0 comments on commit f8ddacd

Please sign in to comment.