]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Tweak option for MSVC.
authorBruno Haible <bruno@clisp.org>
Sat, 31 May 2025 11:04:16 +0000 (13:04 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 31 May 2025 11:04:16 +0000 (13:04 +0200)
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.

gettext-tools/src/Makefile.am

index 513996cab46f5049a78a6c5c2c52f07b4c2297f0..7e9583035c50a70e3eb6a04e97e7117d08717a2c 100644 (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.