bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building gettext-tools with MSVC fails


From: Bruno Haible
Subject: Re: building gettext-tools with MSVC fails
Date: Sat, 31 May 2025 15:30:26 +0200

Kirill Makurin wrote:
> If I understand things correctly, we build many gnulib modules into 
> libgettextlib.la and use it to share them among multiple programs, so we do 
> not link the same code into every executable when building with 
> `--enable-shared`.

Yes, exactly. That's the point of libgettextlib.

And then there's libgettextsrc, which has the same purpose,
but which consists of many files in gettext-tools/src/*.c, not
of gnulib modules.

> I think we might need some preprocessor macro telling us whether we build 
> shared libraries or not: If we do, we should define `DLL_VARIABLE` to 
> `__declspec(dllimport)` when building programs. Otherwise, it should we empty 
> since they will be linked against static library.

Yes, and the definition of 'DLL_VARIABLE' from gettext-tools/configure.ac
is supposed to do just that. No?

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]