I am working on a mathematical modelling library and its test harness, both of which are compiled from C and C++ code. The usual way to link them is as two shared libraries, both fully internally resolved, and a small executable which just contains main() and calls them. The test harness has lots of calls to the library, of course.
I can link the libraries as side modules with .so file extensions. I'd rather they were .wasm files, but I can live with what I have. The main library is libpskernel.so, and the test harness code is libkid_support.so. The latter needs to call the former directly, without a JS layer.
When I link the executable, supplying the names of the .so files on the link line, I get this error:
/u/jgd/regimes/webasm/libkid_support.so: shared library dependency not found in library path: `libpskernel.so`. (library path: ['/sdl/prairie/tools/kernel_tools/webasm/emscripten/v6.0.4/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic', '/sdl/prairie/tools/kernel_tools/webasm/emscripten/v6.0.4/emsdk/upstream/emscripten/src/lib']
The first element of the library path contains crtbegin-mt.o; the second contains a lot of .js libraries. How do I add directories to the library path in question?
I'm currently using Emscripten 6.0.4; do I need a later version?
Thanks in advance.
John