]> xenbits.xensource.com Git - libvirt.git/commit
Fix symbol exports & remove duplicated libvirt_util.la linkage
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 12 Oct 2010 11:23:18 +0000 (12:23 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 19 Oct 2010 16:31:31 +0000 (17:31 +0100)
commit9bd3cce0d2d54e6ab893bb8137218b83d9294714
tree7080956d66b2151c6286fcdc7d1149e2fc464322
parentb8e2de8899594edcd78b3a7cb1b39b89bbed2891
Fix symbol exports & remove duplicated libvirt_util.la linkage

The libvirt_util.la library was mistakenly linked into libvirtd
directly. Since libvirt_util.la is already linked to libvirt.so,
this resulted in libvirtd getting two copies of the code and
more critically 2 copies of static global variables.

Testing in turn exposed a issue with loadable modules. The
gnulib replacement functions are not exported to loadable
modules. Rather than trying to figure out the name sof all
gnulib functions & export them, just linkage all loadable
modules against libgnu.la statically.

* daemon/Makefile.am: Remove linkage of libvirt_util.la
  and libvirt_driver.la
* src/Makefile.am: Link driver modules against libgnu.la
* src/libvirt.c: Don't try to load modules which were
  compiled out
* src/libvirt_private.syms: Export all other internal
  symbols that are required  by drivers
daemon/Makefile.am
src/Makefile.am
src/libvirt.c
src/libvirt_private.syms