wasmtime-go icon indicating copy to clipboard operation
wasmtime-go copied to clipboard

using dynamic lib default in linux-x86_64

Open rayowang opened this issue 2 years ago • 2 comments

Like wasmer, use dynamic library by default in linux-x86_64 to prevent duplicate symbol. (#150)

rayowang avatar Oct 29 '22 15:10 rayowang

Thanks for the PR, but I'm hesitant to switch the defaults here. How does that work with distribution of the dynamic library itself? Do all users have to specify LD_LIBRARY_PATH as you've done here? That's what makes me think that while this is a good option to have it's not a better default just yet.

alexcrichton avatar Oct 31 '22 15:10 alexcrichton

I believe with shared libraries you do have the additional overhead of managing LD_LIBRARY_PATH or similar. This mentions being inspired by wasmer, and you can see in this wasmer PR that using a dynamic lib can cause some pain in distributing the resulting go binaries.

scottopell avatar Dec 12 '22 17:12 scottopell