]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed: Fix link errors on MSVC.
authorBruno Haible <bruno@clisp.org>
Tue, 13 Sep 2022 12:26:20 +0000 (14:26 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
This fixes a link error on MSVC with --enable-shared.

* gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always.

gettext-runtime/configure.ac

index e7eae13bbda3bd82f521c8cac9e98e32a8ff88f1..d524fc9c9c8e9df6e56a8693b2f1f1abcab0f3ae 100644 (file)
@@ -140,8 +140,10 @@ AC_SUBST([INTL_EXPORTS_FLAGS])
 
 dnl Put some default definitions into config.h.
 AH_BOTTOM([
-/* On Windows, variables that may be in a DLL must be marked specially.  */
-#if (defined _MSC_VER && defined WOE32DLL) && !defined IN_RELOCWRAPPER
+/* On Windows, variables that may be in a DLL must be marked specially.
+   But here, the only such variable is 'exit_failure', and it is always
+   built into a static library, never into a shared library.  */
+#if defined WOE32DLL && !defined IN_RELOCWRAPPER && 0
 # define DLL_VARIABLE __declspec (dllimport)
 #else
 # define DLL_VARIABLE