Closed xdestiny110 closed 2 months ago
Cross.toml
[target.x86_64-unknown-linux-musl] image = "musl-openssl:1.0" CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS = ["-C target-feature=-crt-static"]
When I use cross build --target x86_64-unknown-linux-musl --release, it says
cross build --target x86_64-unknown-linux-musl --release
[cross] warning: found unused key(s) in Cross configuration > target.x86_64-unknown-linux-musl.cargo_target_x86_64_unknown_linux_musl_rustflags
How can I setup rustflags in order to compile cdylib in musl?
No response
cross 0.2.5 (d8631fe 2024-08-17)
Just set the environment variable RUSTFLAGS like normal!
RUSTFLAGS
Checklist
Describe your issue
Cross.toml
When I use
cross build --target x86_64-unknown-linux-musl --release
, it saysHow can I setup rustflags in order to compile cdylib in musl?
What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (d8631fe 2024-08-17)
Example
No response
Additional information / notes
No response