fix shared library build with llvm-19#526
Conversation
* for non libc.so libraries, don't forget to link libc.so * avoid link errors on linker-provided symbols. i feel this is a workaround for a wasm-ld bug.
|
I'm seeing the following error when integrating it into a In the build directory, I wonder why the path mismatch didn't happen before this patch though.. |
when building a shared library, specify all CFLAGS because it can contain options like -resource-dir.
i pushed a commit which might fix it. |
|
Thanks, I've verified it fixes wasi-sdk build. |
| @@ -0,0 +1,3 @@ | |||
| __heap_base | |||
| __heap_end | |||
| __c_longjmp | |||
There was a problem hiding this comment.
Can you open a wasm-ld bug regarding this? I think these should not be necessary.
Also, perhaps add a comment here (or in the Makefile) with a link the bug so we know its temporary.
There was a problem hiding this comment.
230d4be6c54bec93181050f9e25c87150506bdd0 plus WebAssembly/wasi-libc#526
In the wasi-sdk windows job, when building libc.so, for some reasons, the -isystem option in CFLAGS here seems to prevent the linker from finding compiler-rt. I don't understand how it happens because: * Afaik, -isystem should not affect how the linker search objects * The compiler-rt path is explicitly given as BUILTINS_LIB Anyway, this commit tries to work it around by passing only a subset of the options.
For following changes: * WebAssembly/wasi-libc#526 * WebAssembly/wasi-libc#529
For following changes: * WebAssembly/wasi-libc#526 * WebAssembly/wasi-libc#529
* llvmorg-19.1.0-rc3 * document setjmp/longjmp support * README.md: mention SetjmpLongjmp.md * bump wasi-libc For following changes: * WebAssembly/wasi-libc#526 * WebAssembly/wasi-libc#529 * bump llvm to llvmorg-19.1.0-rc4 * bump llvm to llvmorg-19.1.0
No description provided.