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_
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
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
risk 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