Bruno Haible writes:
> The last line gives an overfull line in the PDF output, so let me add a line
> break.
>
> Also, there is some collision risk for a shell variable named 'shared'.
>
> I'm therefore applying this:
Thank you Bruno!
/Simon
signature.asc
Description: PGP signature
Simon Josefsson wrote:
> > A couple of lines in configure.ac should do it:
> >
> > if test "$enable_shared" = yes; then
> > shared=1
> > else
> > shared=0
> > fi
> > AC_DEFINE_UNQUOTED([BUILDING_SHARED], [$shared], [Define when
> > --enable-shared is used.])
>
> I installed the fo
Bruno Haible writes:
> Vivien Kraus wrote:
>> I don’t know how to do it at the moment; the
>> configure script automatically gets a --enable-shared=… flag but I
>> can’t find a trace of it in config.log, and I don’t know how to use it.
>> Could you elaborate on how to get a value for BUILDING_SHA
Vivien Kraus wrote:
> I don’t know how to do it at the moment; the
> configure script automatically gets a --enable-shared=… flag but I
> can’t find a trace of it in config.log, and I don’t know how to use it.
> Could you elaborate on how to get a value for BUILDING_SHARED with
> autoconf?
A coupl
Hello,
Le dimanche 03 juillet 2022 à 16:52 +0200, Bruno Haible a écrit :
> +Here @code{BUILDING_SHARED} is a C macro that you have to define.
> It
> +ought to evaluate to 1 in a build configured with @samp{--enable-
> shared},
> +or to 0 in a build configured with @samp{--disable-shared}.
That’s
Vivien Kraus wrote:
> - The library function export visibility trick is great, but the manual
> suggests to augment it with dllimport/export for MSVC:
>
> #if BUILDING_LIBFOO && HAVE_VISIBILITY
> #define LIBFOO_DLL_EXPORTED __attribute__((__visibility__("default")))
> #elif BUILDING_LIBFOO && defi
Vivien Kraus wrote:
> - If I want a libgnu for a library and another libgnu for a program, I
> must have 2 bootstrap scripts with different configurations
No. You need 2 gnulib-tool invocations, but you need only 1 configure.ac
and only 1 bootstrap.
For how it's done, see the documentation [1] an
Dear gnulib people,
I have recently learnt how to use gnulib, and I have to say, it is
pretty impressive. It provides some very useful functions, and it
integrates smoothly with my existing workflows, including git and, more
surprisingly, guix.
I am still discovering the modules, but have already