Mercurial > hg > orthanc-databases
changeset 392:743cf36fb051
fix link on lsb
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Apr 2023 12:29:40 +0200 |
parents | 3d6886f3e5b3 |
children | d941568543a0 2fd272ea8f00 |
files | Resources/CMake/DatabasesPluginConfiguration.cmake |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/DatabasesPluginConfiguration.cmake Wed Apr 05 11:17:20 2023 +0200 +++ b/Resources/CMake/DatabasesPluginConfiguration.cmake Wed Apr 05 12:29:40 2023 +0200 @@ -88,6 +88,14 @@ ) +if (STATIC_BUILD OR NOT USE_SYSTEM_PROTOBUF) + # This is necessary, at least on LSB (Linux Standard Base), + # otherwise the following error is generated: "undefined reference + # to `__tls_get_addr'" + add_definitions(-DGOOGLE_PROTOBUF_NO_THREADLOCAL=1) +endif() + + list(APPEND DATABASES_SOURCES ${ORTHANC_CORE_SOURCES} ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/DatabaseBackendAdapterV2.cpp