diff mbox

[1/1] Fix unable to detect libpci

Message ID 1258093354-5048-1-git-send-email-sheng@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sheng Yang Nov. 13, 2009, 6:22 a.m. UTC
None
diff mbox

Patch

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"