rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.55k stars 57 forks source link

Add a workaround for MIPS linking error #124

Closed messense closed 1 year ago

messense commented 1 year ago

Previously it fails to link with the following error:

ld.lld: error: relocation R_MIPS_32 cannot be used against local symbol; recompile with -fPIC

See https://github.com/ziglang/zig/issues/4925#issuecomment-1499823425