Reuben Thomas wrote: > The gnulib manual mentions this macro, which seems to be obsolete. As > libtool's documentation covers the replacement (win32-dll), along with > remarks about passing -no-undefined, I suggest removing this section from > the gnulib manual.
Good point. I prefer to keep this section, though, because it's an unexpected behaviour of libtool that it contains support for all platforms out-of-the-box, except for native Windows, where it has to be extra requested. 2017-02-09 Bruno Haible <[email protected]> doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro. * doc/gnulib.texi (Libtool and Windows): Recommend LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL. Reported by Reuben Thomas <[email protected]>. diff --git a/doc/gnulib.texi b/doc/gnulib.texi index 1b012a6..ddbac2f 100644 --- a/doc/gnulib.texi +++ b/doc/gnulib.texi @@ -1023,10 +1023,11 @@ available. @section Libtool and Windows If you want it to be possible to cross-compile your program to MinGW -and you use Libtool, you need to put: +and you use Libtool, you need to use the @code{win32-dll} option of +@code{LT_INIT}. In other words, put: @example -AC_LIBTOOL_WIN32_DLL +LT_INIT([win32-dll]) @end example in your @file{configure.ac}. This sets the correct names for the
