Windows port.
* mdemo/configure.in: Use AC_LIBTOOL_WIN32_DLL.
* mdemo/Makefile.am (LDFLAGS): Add -no-undefined.
2000-01-14 Gary V. Vaughan <gary@oranda.demon.co.uk>
+ * mdemo/README: Explain the deliberate incompleteness of the
+ Windows port.
+ * mdemo/configure.in: Use AC_LIBTOOL_WIN32_DLL.
+ * mdemo/Makefile.am (LDFLAGS): Add -no-undefined.
+
* libltdl/ltdl.h (LTDL_STMT_START, LTDL_STMT_END): Macros for
wrapping other macros to make a portable compound statement from
multiple C statements in the expansion.
foo1_la_SOURCES = foo1.c
foo1_la_LIBADD = $(LIBM)
-foo1_la_LDFLAGS = -module -avoid-version
+foo1_la_LDFLAGS = -no-undefined -module -avoid-version
libfoo2_la_SOURCES = foo2.c
libfoo2_la_LIBADD = $(LIBM)
-libfoo2_la_LDFLAGS = -module -export-symbols-regex "libfoo2.*"
+libfoo2_la_LDFLAGS = -no-undefined -module -export-symbols-regex "libfoo2.*"
noinst_HEADERS = foo.h
All exported symbols are prefixed with "libname_LTX_" to avoid
symbols conflicts, especially when linking statically.
libltdl will automatically cut the prefix off to get the real name.
+
+Note that on Windows, for the purposes of illustrating ltdl, the
+libraries *are* built as dll's, but do not have the __declspec
+machinery to make them suitable for loading at link time. This is
+only for clarity inside this example, look at the example in ../demo
+to see how the __declspec macros should be set up.
+
AC_LIBLTDL_CONVENIENCE(../libltdl)
AC_SUBST(LIBLTDL)
+AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)