rust-lang/cc-rs

Don't pass -fPIC by default on wasm

Closed this issue · 1 comments

Rustc by default doesn't generate pic code on wasm targets by default and it seems that mixing pic and no-pic code on wasm results in broken wasm modules in some cases: WebAssembly/wasi-sdk#492

Thanks for reporting!

I can work on this but is a bit busy, if you already have a PR working I'm happy to review it.