]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Document that MSVC cannot be used to build shared libraries.
authorBruno Haible <bruno@clisp.org>
Sun, 12 Feb 2023 21:18:40 +0000 (22:18 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 12 Feb 2023 21:22:13 +0000 (22:22 +0100)
Binaries crash when they are linked to intl-8.dll. Whereas binaries
don't crash when merely linked to iconv-2.dll.

I have debugged this problem for several hours, and think it is a
problem either in libtool or in the Microsoft linker.

* INSTALL.windows: Mention to use --disable-shared with MSVC.

INSTALL.windows

index 72efd29f269ef0b83d777d873eb744c589c0cde9..a1dc4ae035be78412f59f1595cd01be57ab82d6b 100644 (file)
@@ -71,6 +71,10 @@ There are three ways to create binaries of this package for Microsoft Windows:
    (api-ms-win*.dll) through the Windows Update mechanism, see
    https://support.microsoft.com/en-us/kb/2999226 .
 
+   Another constraint is that shared libraries built as part of this package
+   may not work (at least with MSVC 14.0).  Therefore, you will need to pass
+   the configure option '--disable-shared' when building this package.
+
    This recipe requires MS Visual C/C++ 9.0 or newer.
    You don't need the Visual Studio IDE, just the C/C++ tool chain.
    As of 2016, you can install the MS Visual C/C++ 14.0 tool chain from