From: Gary V. Vaughan Date: Fri, 14 Jan 2000 13:50:21 +0000 (+0000) Subject: * mdemo/README: Explain the deliberate incompleteness of the X-Git-Tag: release-1-3d~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e196a092e6998e79fb39208dc2d55f6d47d27ca7;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index a5dacb29a..bbca8b2f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2000-01-14 Gary V. Vaughan + * 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. diff --git a/mdemo/Makefile.am b/mdemo/Makefile.am index d37bacdbd..1eda10ea1 100644 --- a/mdemo/Makefile.am +++ b/mdemo/Makefile.am @@ -10,11 +10,11 @@ lib_LTLIBRARIES = foo1.la libfoo2.la 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 diff --git a/mdemo/README b/mdemo/README index adb625562..936396a9b 100644 --- a/mdemo/README +++ b/mdemo/README @@ -8,3 +8,10 @@ wrapper called "libltdl". 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. + diff --git a/mdemo/configure.in b/mdemo/configure.in index c01bdf264..363d18de8 100644 --- a/mdemo/configure.in +++ b/mdemo/configure.in @@ -14,6 +14,7 @@ dnl on demand even with broken makes AC_LIBLTDL_CONVENIENCE(../libltdl) AC_SUBST(LIBLTDL) +AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL AC_SUBST(LIBTOOL_DEPS)