Now ‘--disable-plugins’ can be removed from the previous commit to
enable some plugins and run them under wine:
sudo dnf install mingw64-gcc mingw64-dlfcn \
mingw64-gnutls mingw64-xz mingw64-zlib
mingw64-configure
make
wine ./server/nbdkit.exe -fv \
./plugins/memory/.libs/nbdkit-memory-plugin.dll size=1M
---
plugins/data/data.c | 2 ++
plugins/data/Makefile.am | 7 +++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/plugins/data/data.c b/plugins/data/data.c
index f9d3881..4a94b29 100644
--- a/plugins/data/data.c
+++ b/plugins/data/data.c
@@ -49,6 +49,8 @@
#include "sparse.h"
+#include "strndup.h"
+
/* If raw|base64|data parameter seen. */
static int data_seen = 0;
diff --git a/plugins/data/Makefile.am b/plugins/data/Makefile.am
index 4976d04..d7c22b8 100644
--- a/plugins/data/Makefile.am
+++ b/plugins/data/Makefile.am
@@ -43,6 +43,7 @@ nbdkit_data_plugin_la_SOURCES = \
$(top_srcdir)/include/nbdkit-plugin.h
nbdkit_data_plugin_la_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/include \
-I$(top_srcdir)/common/include \
-I$(top_srcdir)/common/sparse
@@ -50,11 +51,13 @@ nbdkit_data_plugin_la_CFLAGS = \
$(WARNINGS_CFLAGS) \
$(GNUTLS_CFLAGS)
nbdkit_data_plugin_la_LDFLAGS = \
- -module -avoid-version -shared \
+ -module -avoid-version -shared -no-undefined \
-Wl,--version-script=$(top_srcdir)/plugins/plugins.syms
nbdkit_data_plugin_la_LIBADD = \
+ -L$(top_builddir)/server -lnbdkit \
$(top_builddir)/common/sparse/libsparse.la \
- $(GNUTLS_LIBS)
+ $(GNUTLS_LIBS) \
+ $(top_builddir)/lib/libcompat.la
if HAVE_POD
--
2.20.1