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 8fddafee51..1dc518fab9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3084,11 +3084,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 7ebd0f6066..a22bc80b06 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -347,6 +347,7 @@ virDomainDiskSetType;
virDomainDiskTranslateSourcePool;
virDomainFSDefFree;
virDomainFSDefNew;
+virDomainFSDriverTypeToString;
virDomainFSIndexByName;
virDomainFSInsert;
virDomainFSRemove;
@@ -476,6 +477,7 @@ virDomainObjGetOneDefState;
virDomainObjGetPersistentDef;
virDomainObjGetState;
virDomainObjNew;
+virDomainObjParseFile;
virDomainObjParseNode;
virDomainObjRemoveTransientDef;
virDomainObjSetDefTransient;
--
2.14.3