diff options
| author | 2026-11-25 15:26:52 +0100 | |
|---|---|---|
| committer | 2026-11-25 15:26:52 +0100 | |
| commit | d767ca577ad4bc365570a7ef079c8d9a8ab03baa (patch) | |
| tree | 2543ee5254ed6063ce18feb154ca81816215e15a /configure.ac | |
| parent | 2529f28bc25b678ba7d952543cdfed5d77eb9800 (diff) | |
| download | libirecovery-d767ca577ad4bc365570a7ef079c8d9a8ab03baa.tar.gz libirecovery-d767ca577ad4bc365570a7ef079c8d9a8ab03baa.tar.bz2 | |
Public headers declared the API macro as __declspec(dllimport) on
Windows unless *_STATIC was defined. That made consumers reference
__imp_<symbol>, which only exists in the DLL import library, so linking
against the static library failed unless the consumer also defined
*_STATIC.
All exported symbols are functions, so dllimport is not needed: calls
to plain symbols link against both the static library and the import
library (via its thunks). Drop it from the public headers.
On the library side, apply __declspec(dllexport) only when libtool
defines DLL_EXPORT, i.e. when compiling the objects for the DLL. This
keeps export directives out of the objects that go into the static
library when both are built.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions
