changeset 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 d14e6ff04a5c (current diff) 743cf36fb051 (diff)
children a7a029043670
files
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
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