Closed Wilfred closed 1 year ago
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGs
The problem is the last s is not upper case. You have to use CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS.
I do seem to be getting a binary with static linking.
x86_64-unknown-linux-musl uses static linking by default.
User error, thanks for the pointers!
Checklist
Describe your issue
When configuring RUSTFLAGS with cross, I get a warning about the flag being ignored, but it does seem to be respected.
I believe this is the correct flag according to https://github.com/cross-rs/cross/wiki/Configuration#cargo-configuration, and I do seem to be getting a binary with static linking.
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
Example
Additional information / notes
No response