# HG changeset patch # User Sebastien Jodogne # Date 1625042012 -7200 # Node ID 024ec14b9121bbfdb5a16fbdf9528a493c677740 # Parent d5f1c9498a84f6974a28f4467af0574536c38370# Parent e91a17e3bdb0f203b1534f3df3f104ad4227c5c4 integration OrthancMySQL-4.1->mainline diff -r d5f1c9498a84 -r 024ec14b9121 MySQL/CMakeLists.txt --- a/MySQL/CMakeLists.txt Wed Jun 30 09:15:51 2021 +0200 +++ b/MySQL/CMakeLists.txt Wed Jun 30 10:33:32 2021 +0200 @@ -132,3 +132,13 @@ set_target_properties(UnitTests PROPERTIES COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0 ) + +if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") + # Explicitly adding "-lstdc++ -lm" during linking for LSB had to be + # introduced on the BuildBot server for LSB Release builds between + # "OrthancMySQL-4.0" and "OrthancMySQL-4.1", for unclear + # reasons. Without this option, many symbols are left undefined + # while linking "UnitTests" in release mode. Similar to: + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001 + target_link_libraries(UnitTests stdc++ m) +endif()