From patchwork Sun Jan 8 12:42:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 134903 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 17FCEB6F70 for ; Sun, 8 Jan 2012 23:43:04 +1100 (EST) Received: from localhost ([::1]:50771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjs5Q-0007LP-3d for incoming@patchwork.ozlabs.org; Sun, 08 Jan 2012 07:42:56 -0500 Received: from eggs.gnu.org ([140.186.70.92]:58722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjs5K-0007LF-QU for qemu-devel@nongnu.org; Sun, 08 Jan 2012 07:42:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rjs5I-0000Zk-Oh for qemu-devel@nongnu.org; Sun, 08 Jan 2012 07:42:50 -0500 Received: from hall.aurel32.net ([88.191.126.93]:35591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjs5I-0000Zg-9m for qemu-devel@nongnu.org; Sun, 08 Jan 2012 07:42:48 -0500 Received: from [2001:470:d4ed:0:5e26:aff:fe2b:6f5b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Rjs5G-0003Xq-Sl; Sun, 08 Jan 2012 13:42:46 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.77) (envelope-from ) id 1Rjs5F-0001rB-KB; Sun, 08 Jan 2012 13:42:45 +0100 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Sun, 8 Jan 2012 13:42:38 +0100 Message-Id: <1326026558-7016-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.7.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 88.191.126.93 Cc: Aurelien Jarno Subject: [Qemu-devel] [PATCH] configure: fix library linking for smartcard NSS and usbredir X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org configure script currently add smartcard NSS and usbredir libraries to LIBS instead of libs_softmmu. This cause even the qemu-user builds to link with them, and causes some problems with --static as NSS libraries are usually not available as static. Signed-off-by: Aurelien Jarno --- configure | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 0309dad..ce39534 100755 --- a/configure +++ b/configure @@ -2552,7 +2552,7 @@ if test "$smartcard" != "no" ; then libcacard_libs=$($pkg_config --libs nss 2>/dev/null) libcacard_cflags=$($pkg_config --cflags nss 2>/dev/null) QEMU_CFLAGS="$QEMU_CFLAGS $smartcard_cflags $libcacard_cflags" - LIBS="$libcacard_libs $LIBS" + libs_softmmu="$libs_softmmu $libcacard_libs" else if test "$smartcard_nss" = "yes"; then feature_not_found "nss" @@ -2572,7 +2572,7 @@ if test "$usb_redir" != "no" ; then usb_redir_cflags=$($pkg_config --cflags libusbredirparser 2>/dev/null) usb_redir_libs=$($pkg_config --libs libusbredirparser 2>/dev/null) QEMU_CFLAGS="$QEMU_CFLAGS $usb_redir_cflags" - LIBS="$LIBS $usb_redir_libs" + libs_softmmu="$libs_softmmu $usb_redir_libs" else if test "$usb_redir" = "yes"; then feature_not_found "usb-redir"