# HG changeset patch # User Sebastien Jodogne # Date 1680690580 -7200 # Node ID 743cf36fb051b990ecb08d07faf14e1fda214a13 # Parent 3d6886f3e5b3262de960638ae59e39c870ba8a17 fix link on lsb diff -r 3d6886f3e5b3 -r 743cf36fb051 Resources/CMake/DatabasesPluginConfiguration.cmake --- 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