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__) &&

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; >

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

2023-09-06 Thread Bruno Haible
that two different lock instances exist in the same process. This patch implements it for the symbol defined by relocatable.c. 2023-09-05 Bruno Haible relocatable-lib-lgpl: Don't export symbols from static MSVC .obj files. Reported by Dmitry Bely in <ht