qemu-devel
[Top][All Lists]
Advanced

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

Re: libslirp and static linking


From: Paolo Bonzini
Subject: Re: libslirp and static linking
Date: Fri, 5 Aug 2022 19:33:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

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

[Prev in Thread] Current Thread [Next in Thread]