From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: qemu-trivial@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/2 v3] Fix static linking for cURL and SDL
Date: Wed, 5 Sep 2012 10:33:32 +0100 [thread overview]
Message-ID: <20120905093332.GA4786@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <1346591386-22698-1-git-send-email-yann.morin.1998@free.fr>
On Sun, Sep 02, 2012 at 03:09:44PM +0200, Yann E. MORIN wrote:
> Hello All!
>
> Currently, configure checks for cURL and SDL with either pkg-config (the
> default), or with {curl,sdl}-config (as a fallback).
>
> But pkg-config and {curl,sdl}-config do not have the same set of options:
> - to check for shared libs, both use the option: --libs
> - to check for static libs:
> - pkg-config uses : --static --libs
> - {curl,sdl}-config use: --static-libs
>
> To add to the complexity, pkg-config is called through the querry_pkg_config
> wrapper, that already passes --static when static linking is required, but
> there is no such wrapper for {curl,sdl}-config, so we miss the occasion to
> pass --static-libs.
>
> To fix this:
> - introduce a new variable QEMU_XXX_CONFIG_LIBS_FLAGS that mirrors the
> behavior of QEMU_PKG_CONFIG_FLAGS; this variable can be used by all
> xxx-config scripts (eg. curl-config, but later sdl-config too).
> Default it to '--libs', which is for shared linking.
> - properly use either --libs for pkg-config (--static is already taken
> care of in the wrapper), or $QEMU_XXX_CONFIG_LIBS_FLAGS for
> {curl,sdl}-config.
>
>
> Changes since v2:
> - remove trailing reference to cURL in the SDL patch (Stefan Hajnoczi)
> - sent to qemu-devel and cc qemu-trivial (Peter Maydell, Stefan)
> - fix type in the name of the new variable
>
> Changes since v1:
> - drop the spice fix, it is not needed (bad env locally)
> - drop the added --static to calls to pkg-config, as it's already in the
> wrapper (Stefan Hajnoczi)
Any more discussion around this?
I'm happy with the patches.
Stefan
prev parent reply other threads:[~2012-09-05 9:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-02 13:09 [Qemu-devel] [PATCH 0/2 v3] Fix static linking for cURL and SDL Yann E. MORIN
2012-09-02 13:09 ` [Qemu-devel] [PATCH 1/2] configure: fix detection for cURL libs when static linking Yann E. MORIN
2012-09-02 13:09 ` [Qemu-devel] [PATCH 2/2] configure: fix detection for SDL " Yann E. MORIN
2012-09-03 9:31 ` [Qemu-devel] [PATCH 0/2 v3] Fix static linking for cURL and SDL Stefan Hajnoczi
2012-09-03 15:41 ` Andreas Färber
2012-09-03 15:44 ` Peter Maydell
2012-09-03 16:28 ` Yann E. MORIN
2012-09-03 16:38 ` Peter Maydell
2012-09-03 17:06 ` Yann E. MORIN
2012-09-05 9:33 ` Stefan Hajnoczi [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=20120905093332.GA4786@stefanha-thinkpad.localdomain \
--to=stefanha@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=yann.morin.1998@free.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).