Rather than static linking in various of the helper libraries to
libvirt_lxc, just link against the main libvirt.so. This is more memory
and time efficient because it will already be cached in memory and
sharable between processes.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
src/Makefile.am | 6 +-----
src/libvirt_private.syms | 2 ++
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index ce0081cd4d..549f799a5a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3115,11 +3115,7 @@ libvirt_lxc_LDFLAGS = \
$(NULL)
libvirt_lxc_LDADD = \
$(FUSE_LIBS) \
- libvirt-net-rpc-server.la \
- libvirt-net-rpc.la \
- libvirt_security_manager.la \
- libvirt_conf.la \
- libvirt_util.la \
+ libvirt.la \
../gnulib/lib/libgnu.la
if WITH_DTRACE_PROBES
libvirt_lxc_LDADD += libvirt_probes.lo
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 0a2822583c..af34745e4c 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -346,6 +346,7 @@ virDomainDiskSetSource;
virDomainDiskSetType;
virDomainFSDefFree;
virDomainFSDefNew;
+virDomainFSDriverTypeToString;
virDomainFSIndexByName;
virDomainFSInsert;
virDomainFSRemove;
@@ -468,6 +469,7 @@ virDomainObjGetOneDefState;
virDomainObjGetPersistentDef;
virDomainObjGetState;
virDomainObjNew;
+virDomainObjParseFile;
virDomainObjParseNode;
virDomainObjRemoveTransientDef;
virDomainObjSetDefTransient;
--
2.14.3