Vivien Kraus wrote:
> In manual section 19.2 Controlling the Exported Symbols of Shared
> Libraries,

https://www.gnu.org/software/gnulib/manual/html_node/Exported-Symbols-of-Shared-Libraries.html

> I see you define BUILDING_SHARED to 1 if "$enable_shared" is
> "yes", and 0 otherwise.

Yes.

> This seems to be a Windows-specific thing, but when I run ./configure -
> -help, I read:
> 
>   --enable-shared[=PKGS]  build shared libraries [default=yes]
> 
> So if I don’t touch this option, enable_shared should be "yes", right?

For some --enable/disable-* macros, the displayed default is incorrect.

> So BUILDING_SHARED should be 1. However I observe a value of 0. Did I
> miss something? Is 0 the expected value?

If you get 0 here, it means that the LT_INIT macro in your configure.ac
determined that it cannot enable shared libraries. Most likely because
you did not pass a set of working configure options. For a correct set,
see [1] or [2].

> Also, the help line indicates that maybe the value will be something
> other than "yes", but I don’t really understand what PKGS would be
> here.  I could not find a mention of enable-shared or enable_shared in
> the autoconf manual nor the INSTALL default instructions. Would 0 be
> the correct value here too?

To answer detailed questions like that, you need to inspect the generated
configure script.

Bruno

[1] https://gitlab.com/ghwiki/gnow-how/-/wikis/Platforms/Configuration
[2] https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=INSTALL.windows




Reply via email to