wabt icon indicating copy to clipboard operation
wabt copied to clipboard

wabt only builds static libraries

Open PaddyMac opened this issue 3 months ago • 3 comments

I don't know if this is technically a bug since I don't know if this is an intentional choice or not, but wabt's build system only produces static libraries, and there is no provided cmake command line argument to change this behavior. CMakeLists.txt can be manually edited or patched to provide shared libraries. But unless there is some fundamental reason why this library shouldn't be a shared library, it should do what most libraries do which is to provide shared objects by default and additionally static libraries as an option.

PaddyMac avatar Nov 11 '25 02:11 PaddyMac

It there is change the CMakeList.txt file that would make it easier to build shared libraries a patch would be most welcome.

sbc100 avatar Nov 11 '25 04:11 sbc100

wabt-1.0.39-shared-libs.patch This is a simple patch to simply remove the STATIC keyword so that shared libraries are built by default. This isn't really a robust solution which would implement command line switches to pass to cmake to configure this behavior without the end user modifying CMakeLists.txt. I could probably craft something to that effect when I have some spare time.

PaddyMac avatar Nov 12 '25 01:11 PaddyMac

Do you yourself have need for a shared library version?

sbc100 avatar Nov 12 '25 02:11 sbc100