Skip to content

Commit

Permalink
fix: static glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jan 8, 2024
1 parent d731cc4 commit d7acf21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ rustflags = [
"-C", "link-args=/NODEFAULTLIB:libucrt.lib /NODEFAULTLIB:libucrtd.lib /NODEFAULTLIB:ucrtd.lib",
]

[target.x86_64-unknown-linux-gnu]
rustflags = [
"-C", "target-feature=+crt-static",
"-C", "link-args=-static",
]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

0 comments on commit d7acf21

Please sign in to comment.