I have this as my ./cargo/config:
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-none-linux-gnu-gcc"
rustflags = ["-C", "target-feature=+crt-static"]
I have defined RUSTFLAGS in build.sh like so:
export RUSTFLAGS='--cfg chip_type="es"'
When I do:
cargo build --target=aarch64-unknown-linux-gnu
I find that the "-C", "target-feature=+crt-static" is not included. How do I solve this problem?