mirror of https://github.com/gabime/spdlog.git
Hide non-API functions when position independent code is enabled
Usage of -fvisibility=hidden is the recommended default for DSO's. If the spdlog build is for a shared library, then API symbols have SPDLOG_API marking on them, and cause the symbol to be exported, with other symbols now hidden by default. If the build is for a static library with position-independent code, then spdlog is to be embedded as implementation detail in another shared library or executable. In that case we don't want to export any symbol. Conveniently, SPDLPG_API in that case resolves to nothing, so with the default of hidden all symbols are made hidden.pull/2895/head
parent
91807c2e71
commit
894f26bd87
Loading…
Reference in New Issue