On 8/5/22 18:13, Peter Maydell wrote:
Hi; I noticed today that Debian's libslirp-dev package doesn't ship
a static library version of libslirp. I was going to file a Debian
bug about that, but then looking at upstream 'libslirp' I found
that its README.md
https://gitlab.freedesktop.org/slirp/libslirp
only documents how to build a shared library libslirp, and says
"(QEMU may build with the submodule static library using --enable-slirp=git)"

So:
(1) is it possible to build the separate libslirp package as
     a static library currently?

Yes (same with any other meson project):

$ meson setup -Ddefault_library=both build
$ ninja -Cbuild
$ ls -ld build/libslirp*
-rw-r--r--. 1 pbonzini users 1182058 Aug  5 19:30 build/libslirp.a

Paolo

Reply via email to