[libvirt] [PATCH] build: Add libcurl dependency to libvirt_driver.la

Hu Tao hutao at cn.fujitsu.com
Mon Feb 4 01:41:58 UTC 2013


On Fri, Feb 01, 2013 at 01:45:19PM +0100, Jiri Denemark wrote:
> libvirt.c calls curl_global_init() if WITH_CURL is defined and thus it
> should be linked with libcurl. This fixes link failure in case neither
> xenapi nor esx driver is enabled (they are the only users of libcurl).

In the case we link with libcurl just because user wants it. How about
not exposing --with-curl but define WITH_CURL when needs to(xenapi or
esx driver is enabled, or both)?

-- 
Regards,
Hu Tao




More information about the libvir-list mailing list