# HG changeset patch # User Sebastien Jodogne # Date 1625041414 -7200 # Node ID e91a17e3bdb0f203b1534f3df3f104ad4227c5c4 # Parent adb5e86645a6044c9b8a221bb0879be2c6def210 cont fix lsb diff -r adb5e86645a6 -r e91a17e3bdb0 MySQL/CMakeLists.txt --- a/MySQL/CMakeLists.txt Wed Jun 30 10:10:38 2021 +0200 +++ b/MySQL/CMakeLists.txt Wed Jun 30 10:23:34 2021 +0200 @@ -134,11 +134,11 @@ ) if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") - # Explicitly adding "-lstdc++" during linking for LSB had to be + # 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++) + target_link_libraries(UnitTests stdc++ m) endif()