build: Tweak option for MSVC.

Suggested by Kirill Makurin <maiddaisuki@outlook.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00071.html>.

* gettext-tools/src/Makefile.am (xgettext_LDFLAGS): Use an MSVC option with '-'
instead of '/', for resilience against the (unsupported) MSYS2.
This commit is contained in:
Bruno Haible 2025-05-31 13:04:16 +02:00
parent 087018bf48
commit 8d8ad10907

View File

@ -568,7 +568,7 @@ endif
# recursion depth of 1000, we need to increase the stack size. Cf.
# <https://learn.microsoft.com/en-us/cpp/build/reference/f-set-stack-size>.
if PLATFORM_IS_MSVC
xgettext_LDFLAGS += -Wl,/F4000000
xgettext_LDFLAGS += -Wl,-F4000000
endif
# Linking with C++ libraries is needed _only_ on mingw and Cygwin.