Skip to content

Commit e3e4f8a

Browse files
committed
docs: add comments explaining static linking flags
Added succinct comments explaining why static linking flags are needed for Ubuntu 22.04 compatibility.
1 parent 3373b08 commit e3e4f8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Cross.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pre-build = [
2323
"apt install --yes gcc libclang-dev make",
2424
]
2525

26+
# Static linking flags for Ubuntu 22.04 compatibility
2627
[target.x86_64-unknown-linux-gnu.env]
2728
passthrough = [
2829
"RUSTFLAGS=-C target-feature=+crt-static -C link-arg=-lgcc -C link-arg=-static-libgcc",
@@ -35,6 +36,7 @@ pre-build = [
3536
"apt install --yes gcc gcc-aarch64-linux-gnu libclang-dev make",
3637
]
3738

39+
# Static linking flags for Ubuntu 22.04 compatibility
3840
[target.aarch64-unknown-linux-gnu.env]
3941
passthrough = [
4042
"CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc",

0 commit comments

Comments
 (0)