cargo-xbuild
cargo-xbuild copied to clipboard
relocation R_X86_64_32S out of range
When I build a Kernel Os with some crates ,it happend. Then I tried to give RUSTFLAGS and rebuilded those crates, also failed. But when I used .cargo/config.toml ,set build-std and env RUSTFLAGS then it did well Is cargo-xbuild question or have another resolution I don`t find?
We don't pass RUSTFLAGS when building core and the other sysroot crates because we need to set our own RUSTFLAGS. If your project works with cargo's build-std feature, I recommend using that instead of cargo-xbuild.