Mercurial > hg > orthanc-databases
diff Resources/CMake/DatabasesPluginConfiguration.cmake @ 393:d941568543a0 db-protobuf
integration mainline->db-protobuf
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Apr 2023 12:31:04 +0200 |
parents | 743cf36fb051 |
children | 2fd272ea8f00 |
line wrap: on
line diff
--- a/Resources/CMake/DatabasesPluginConfiguration.cmake Wed Apr 05 12:09:46 2023 +0200 +++ b/Resources/CMake/DatabasesPluginConfiguration.cmake Wed Apr 05 12:31:04 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