bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] Avoid __declspec(dllexport) for MSVC static build


From: Dmitry Bely
Subject: [bug-gnu-libiconv] Avoid __declspec(dllexport) for MSVC static build
Date: Tue, 15 Aug 2023 17:28:36 +0100

libiconv always defines BUILDING_DLL for its build. In the case of MSVC that in turn defines

# define RELOCATABLE_DLL_EXPORTED __declspec(dllexport)

That's unacceptable for a static library because if that library is linked into a user DLL, all its public symbols are automatically exported from the DLL.

BUILDING_DLL should be defined only when shared libraries are built.

- Dmitry Bely

reply via email to

[Prev in Thread] Current Thread [Next in Thread]