pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Building packages for wasm32-wasi



I am experimenting with WebAssembly (wasm) using the wasi toolchain.

This requires use of the clang compiler with --target=wasm32-wasi

I would like to use pkgsrc to build my application's dependencies (e.g.
SQLite3). What could be an idiomatic way to organize this?

The wasi-libc package installs under prefix /usr/pkg/wasi, e.g.
/usr/pkg/wasi/lib/wasm32-wasi for above architecture. So, for example I'd
need libsqlite3.a to go under the same prefix.

But that's not all, as SQLite3 will have its own dependencies that need to
be available for wasm32-wasi as .a. But any build time tool dependencies
should be built for the native platform, not wasm32-wasi.

-- 
Mayuresh



Home | Main Index | Thread Index | Old Index