changeset 295:e91a17e3bdb0 OrthancMySQL-4.1

cont fix lsb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Jun 2021 10:23:34 +0200
parents adb5e86645a6
children 024ec14b9121 f0704e57476b
files MySQL/CMakeLists.txt
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()