]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: For MSVC, recommend to avoid the preinstalled libunistring.
authorBruno Haible <bruno@clisp.org>
Sat, 31 May 2025 11:32:03 +0000 (13:32 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 31 May 2025 11:32:03 +0000 (13:32 +0200)
This fixes an "initializer is not a constant" error upon use of uninorm_nfc.
Reported by Kirill Makurin <maiddaisuki@outlook.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00076.html>.

* INSTALL.windows: For MSVC, recommend --with-included-libunistring.

INSTALL.windows

index 3aa1c004a63005da4f356eee4345c1d493ae3433..6265527a7a4e5d1f9e1a508921ac2ed79d84710f 100644 (file)
@@ -176,6 +176,7 @@ There are three ways to create binaries of this package for Microsoft Windows:
       win32_target=_WIN32_WINNT_WIN8    # possibly for MSVC >= 10.0
 
       ./configure --host=i686-w64-mingw32 --prefix=/usr/local/msvc32 \
+            --with-included-libunistring \
             CC="$HOME/msvc/compile cl -nologo" \
             CFLAGS="-MD" \
             CXX="$HOME/msvc/compile cl -nologo" \
@@ -202,6 +203,7 @@ There are three ways to create binaries of this package for Microsoft Windows:
       win32_target=_WIN32_WINNT_WIN8    # possibly for MSVC >= 10.0
 
       ./configure --host=x86_64-w64-mingw32 --prefix=/usr/local/msvc64 \
+            --with-included-libunistring \
             CC="$HOME/msvc/compile cl -nologo" \
             CFLAGS="-MD" \
             CXX="$HOME/msvc/compile cl -nologo" \