All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
	QEMU Developers <qemu-devel@nongnu.org>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
	Michael Tokarev <mjt@tls.msk.ru>
Subject: Re: libslirp and static linking
Date: Fri, 5 Aug 2022 19:33:13 +0200	[thread overview]
Message-ID: <4452eaa1-979f-66d6-90cc-761b8d312577@redhat.com> (raw)
In-Reply-To: <CAFEAcA87=Xs8vd8e+eHzSFboWOUcAhJUuFvuG1gzw+Zs_M-DyQ@mail.gmail.com>

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	other threads:[~2022-08-05 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05 16:13 libslirp and static linking Peter Maydell
2022-08-05 17:33 ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4452eaa1-979f-66d6-90cc-761b8d312577@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=samuel.thibault@ens-lyon.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.