From patchwork Fri Nov 13 06:22:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 59727 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAD6NdEN003225 for ; Fri, 13 Nov 2009 06:23:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753358AbZKMGXb (ORCPT ); Fri, 13 Nov 2009 01:23:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753333AbZKMGXb (ORCPT ); Fri, 13 Nov 2009 01:23:31 -0500 Received: from mga09.intel.com ([134.134.136.24]:9524 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753332AbZKMGXa (ORCPT ); Fri, 13 Nov 2009 01:23:30 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 12 Nov 2009 22:09:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,734,1249282800"; d="scan'208";a="569149087" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.36.163]) by orsmga001.jf.intel.com with ESMTP; 12 Nov 2009 22:23:29 -0800 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1N8pYg-0001Jv-2l; Fri, 13 Nov 2009 14:22:58 +0800 From: Sheng Yang To: Avi Kivity Cc: Marcelo Tosatti , kvm@vger.kernel.org, Sheng Yang , Juan Quintela Subject: [PATCH 1/1] Fix unable to detect libpci Date: Fri, 13 Nov 2009 14:22:34 +0800 Message-Id: <1258093354-5048-1-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.6.3.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/configure b/configure index 9d3b840..5b08367 100755 --- a/configure +++ b/configure @@ -1477,8 +1477,8 @@ if test $kvm_cap_device_assignment = "yes" ; then #endif int main(void) { struct pci_access a; pci_init(&a); return 0; } EOF - if compile_prog "" "-lpci" ; then - libs_softmmu="-lpci $libs_softmmu" + if compile_prog "" "-lpci -lz" ; then + libs_softmmu="-lpci -lz $libs_softmmu" else echo echo "Error: libpci check failed"