Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2de1025

Browse files
committedJan 20, 2022
build: pass win32-dll to LT_INIT()
This is the recommended way to support building PE DLLs with modern mingw toolchains and libtool. I made a similar change upstream in the secp256k1 repo: bitcoin-core/secp256k1#1022. Note that we already pass `-no-undefined` to our libtool LDFLAGS. > 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 bitcoin-core/secp256k1#923
1 parent 1824644 commit 2de1025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ dnl sets RPATH for any directories in the dynamic linker search path.
9797
dnl See more: https://wiki.debian.org/RpathIssue
9898
LT_PREREQ([1.5.2])
9999
dnl Libtool init checks.
100-
LT_INIT([pic-only])
100+
LT_INIT([pic-only win32-dll])
101101

102102
dnl Check/return PATH for base programs.
103103
AC_PATH_TOOL([AR], [ar])

0 commit comments

Comments
 (0)
Please sign in to comment.