qemu-trivial
[Top][All Lists]
Advanced

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

[Qemu-trivial] [PATCH 3/3] configure: fix detection for Spice libs when


From: Yann E. MORIN
Subject: [Qemu-trivial] [PATCH 3/3] configure: fix detection for Spice libs when static linking
Date: Mon, 20 Aug 2012 23:39:09 +0200

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" <address@hidden>
---
 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




reply via email to

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