From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: qemu-trivial@nongnu.org
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Subject: [Qemu-trivial] [PATCH 3/3] configure: fix detection for Spice libs when static linking
Date: Mon, 20 Aug 2012 23:39:09 +0200 [thread overview]
Message-ID: <1345498749-16769-3-git-send-email-yann.morin.1998@free.fr> (raw)
In-Reply-To: <1345498749-16769-1-git-send-email-yann.morin.1998@free.fr>
Currently, configure uses the same code-path to check for Spice libraries,
whether we are doing a static or dynamic build.
Fix that by pasing '--static --libs' for pkg-config when a static build
is attempted.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
configure | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 5b52f9d..4d3aea4 100755
--- a/configure
+++ b/configure
@@ -2702,7 +2702,11 @@ if test "$spice" != "no" ; then
int main(void) { spice_server_new(); return 0; }
EOF
spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null)
- spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null)
+ if test "$static" = "yes" ; then
+ spice_libs=$($pkg_config --static --libs spice-protocol spice-server 2>/dev/null)
+ else
+ spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null)
+ fi
if $pkg_config --atleast-version=0.8.2 spice-server >/dev/null 2>&1 && \
$pkg_config --atleast-version=0.8.1 spice-protocol > /dev/null 2>&1 && \
compile_prog "$spice_cflags" "$spice_libs" ; then
--
1.7.2.5
next prev parent reply other threads:[~2012-08-20 21:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 21:39 [Qemu-trivial] [PATCH 1/3] configure: fix detection for cURL libs when static linking Yann E. MORIN
2012-08-20 21:39 ` [Qemu-trivial] [PATCH 2/3] configure: fix detection for SDL " Yann E. MORIN
2012-08-20 21:39 ` Yann E. MORIN [this message]
2012-08-24 11:02 ` [Qemu-trivial] [PATCH 1/3] configure: fix detection for cURL " Stefan Hajnoczi
2012-08-27 17:21 ` Yann E. MORIN
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=1345498749-16769-3-git-send-email-yann.morin.1998@free.fr \
--to=yann.morin.1998@free.fr \
--cc=qemu-trivial@nongnu.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 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).