Re: [PATCH 1/1] Fix unable to detect libpci

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

 



Sheng Yang <sheng@xxxxxxxxxxxxxxx> wrote:
> commit 75fe7882 "Test for libpci, not only for header" compile a libpci
> test file. But the pciutils with defined PCI_COMPRESSED_IDS also need zlib
> when compile, otherwise the compile would fail, and detection fail then
>
> CC: Juan Quintela <quintela@xxxxxxxxxx>
> Signed-off-by: Sheng Yang <sheng@xxxxxxxxxxxxxxx>

Reviewed-by: Juan Quintela <quintela@xxxxxxxxxx>

configure already requires -lz sooner, i.e. nothing new, and everything
execpt *-user links with -lz already.

Later, Juan.

> ---
>  configure |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> 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"
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux