fix patch, we apparently don't have the exact same Makefile.am
[libvirt.git] / libcurl.patch
1 build: Add libcurl dependency to libvirt_driver.la
2 author  Jiri Denemark <jdenemar@redhat.com>     
3 Fri, 1 Feb 2013 12:36:06 +0000 (13:36 +0100)
4 committer       Jiri Denemark <jdenemar@redhat.com>     
5 Tue, 5 Feb 2013 09:00:32 +0000 (10:00 +0100)
6 libvirt.c calls curl_global_init() if WITH_CURL is defined and thus it
7 should be linked with libcurl. This fixes link failure in case neither
8 xenapi nor esx driver is enabled (they are the only users of libcurl).
9
10 src/Makefile.am         patch | blob | history
11 diff --git a/src/Makefile.am b/src/Makefile.am
12 index 070a089..f6162df 100644 (file)
13 --- a/src/Makefile.am   2013-02-19 19:24:43.635404112 +0100
14 +++ b/src/Makefile.am   2013-02-19 19:27:54.487331784 +0100
15 @@ -792,9 +792,11 @@
16  libvirt_la_BUILT_LIBADD += libvirt_driver.la
17  libvirt_driver_la_SOURCES = $(DRIVER_SOURCES)
18  
19 -libvirt_driver_la_CFLAGS = $(NUMACTL_CFLAGS) $(GNUTLS_CFLAGS) \
20 -               -I$(top_srcdir)/src/conf $(AM_CFLAGS)
21 -libvirt_driver_la_LIBADD = $(NUMACTL_LIBS) $(GNUTLS_LIBS) $(DLOPEN_LIBS)
22 +libvirt_driver_la_CFLAGS = \
23 +               $(NUMACTL_CFLAGS) $(GNUTLS_CFLAGS) $(CURL_CFLAGS) \
24 +              -I$(top_srcdir)/src/conf $(AM_CFLAGS)
25 +libvirt_driver_la_LIBADD = \
26 +               $(NUMACTL_LIBS) $(GNUTLS_LIBS) $(CURL_LIBS) $(DLOPEN_LIBS)
27  
28  USED_SYM_FILES = $(srcdir)/libvirt_private.syms
29