Re: relocatable-lib-lgpl: Add support for mingw builds on Cygwin hosts

2024-10-11 Thread Bruno Haible via Gnulib discussion list
> 2024-09-25 Bruno Haible > > build-to-host.m4: Add some convenience macros. More of the same kind: 2024-10-11 Bruno Haible bison-i18n: Add support for mingw builds on Cygwin hosts. * m4/bison-i18n.m4 (BISON_I18N): Define also BISON_LOCALEDIR_c and BISON_L

Re: relocatable-lib-lgpl: Don't export symbols from static MSVC .obj files

2023-09-09 Thread Bruno Haible
Hi Simon, > > -#define LIBFOO_DLL_EXPORTED __attribute__((__visibility__("default"))) > > -#elif (defined _WIN32 && !defined __CYGWIN__) && BUILDING_SHARED && > > BUILDING_LIBFOO > > -#define LIBFOO_DLL_EXPORTED __declspec(dllexport) > > -#elif (defined _WIN32 && !defined __CYGWIN__) && BUILDING_

Re: relocatable-lib-lgpl: Don't export symbols from static MSVC .obj files

2023-09-07 Thread Simon Josefsson via Gnulib discussion list
Bruno Haible writes: > -#define LIBFOO_DLL_EXPORTED __attribute__((__visibility__("default"))) > -#elif (defined _WIN32 && !defined __CYGWIN__) && BUILDING_SHARED && > BUILDING_LIBFOO > -#define LIBFOO_DLL_EXPORTED __declspec(dllexport) > -#elif (defined _WIN32 && !defined __CYGWIN__) && BUILDIN

Re: relocatable-lib-lgpl: Don't export symbols from static MSVC .obj files

2023-09-06 Thread Bruno Haible
I wrote: > When building packages that contain shared libraries using libtool, > each compilation unit is compiled twice: to FILE.o as a static > object file, and to .libs/FILE.o for inclusion into a shared library. > On Windows, the latter file is compiled with options -DDLL_EXPORT -DPIC; > libtoo

Re: relocatable-lib{,-lgpl}

2017-03-07 Thread Reuben Thomas
On 7 March 2017 at 12:19, Reuben Thomas wrote: > I have read the documentation in gnulib, and also dug out the original > announcement, coincidentally almost exactly 10 years old: > http://lists.gnu.org/archive/html/bug-gnulib/2003-03/msg00020.html > ​By the way, I noticed that Alexandre Duret-L