mirror of https://github.com/WebAssembly/wasi-sdk
This commit updates the build of the `wasm32-wasip2` target to always pass `-fPIC` to compilation of wasi-libc. This notably enables using `libc.a` in dynamic linking situations instead of being forced to use `libc.so`. While many applications likely want to use `libc.so` I've found it more flexible if objects are compatible with as many builds as possible. This will enable, for example, building shared libraries in Rust by default since Rust only ships `libc.a`, not `libc.so`, in the pre-built sysroot. This behavior additionally matches the Rust `wasm32-wasip2` target where `-fPIC` is enabled by default there.pull/564/head
parent
d90d7de10e
commit
b7d75701aa
@ -1 +1 @@
|
||||
Subproject commit bbb0c01b112f8c3aaa1974407c5302a26b88babb
|
||||
Subproject commit 008d705c9d16dc9057bb6efc220fb539f1fb7fb5
|
Loading…
Reference in new issue