From fe32a79d354dfc7f341dbfdd6b8f0d408bd76e5b Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 2 Dec 2021 11:44:13 +0800 Subject: [PATCH] build: pass win32-dll to LT_INIT This is the recommended way to support building PE DLLs with modern mingw toolchains and libtool. > This option should be used if the package has been ported to build clean > dlls on win32 platforms. > If this macro is not used, libtool will assume that the package libraries > are not dll clean and will build only static libraries on win32 hosts. See: https://www.gnu.org/software/libtool/manual/libtool.html#LT_005fINIT https://www.gnu.org/software/gnulib/manual/html_node/Libtool-and-Windows.html https://autotools.io/libtool/windows.html --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c3c213a01c579..01fbbe634176e 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ AH_TOP([#define LIBSECP256K1_CONFIG_H]) AH_BOTTOM([#endif /*LIBSECP256K1_CONFIG_H*/]) AM_INIT_AUTOMAKE([foreign subdir-objects]) -LT_INIT +LT_INIT([win32-dll]) # Make the compilation flags quiet unless V=1 is used. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])