[lld] [lld][WebAssembly] Always search *.so for -Bdynamic (PR #84288)

YAMAMOTO Takashi via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 19:46:50 PST 2024


yamt wrote:

> Seems like a good change.
> 
> How about we keep `-Bdynamic` as the default when building with `-shared` and/or `-pie` ? It seems like in those modes we want to consume shared libraries by default.

it sounds reasonable to me.

> Another alternative is that we always prefer shared libraries unless `-static` is passed? then it would be up to the clang driver (or users) to specify `-static` in the presence of both `.so` and `.a` files.

as the latest wasi-sdk ships *.so files, i guess it surprises many users.

> Ideally we would have some flag

what do you mean?


https://github.com/llvm/llvm-project/pull/84288


More information about the llvm-commits mailing list