All other stateful drivers are linked directly to libvirtd
instead of libvirt.so. Link the secret driver to libvirtd too.
* daemon/Makefile.am: link the secret driver to libvirtd
* daemon/libvirtd.c: add #ifdef WITH_SECRETS blocks
* src/Makefile.am: don't link the secret driver to libvirt.so
* src/libvirt_private.syms: remove the secretRegister symbol
if WITH_NODE_DEVICES
libvirtd_LDADD += ../src/libvirt_driver_nodedev.la
endif
+
+if WITH_SECRETS
+ libvirtd_LDADD += ../src/libvirt_driver_secret.la
+endif
endif
libvirtd_LDADD += ../src/libvirt.la
#ifdef WITH_NODE_DEVICES
#include "node_device/node_device_driver.h"
#endif
+#ifdef WITH_SECRETS
#include "secret/secret_driver.h"
#endif
+#endif
#ifdef __sun
#if defined(WITH_NODE_DEVICES)
nodedevRegister();
#endif
+#ifdef WITH_SECRETS
secretRegister();
+#endif
#ifdef WITH_QEMU
qemuRegister();
#endif
mod_LTLIBRARIES += libvirt_driver_secret.la
else
noinst_LTLIBRARIES += libvirt_driver_secret.la
-libvirt_la_LIBADD += libvirt_driver_secret.la
+# Stateful, so linked to daemon instead
+#libvirt_la_LIBADD += libvirt_driver_secret.la
endif
libvirt_driver_secret_la_CFLAGS = \
-I@top_srcdir@/src/conf
virSecretDefParseFile;
virSecretDefFormat;
-# secret_driver.h
-secretRegister;
# security.h
virSecurityDriverVerify;