# HG changeset patch # User Sebastien Jodogne # Date 1625741778 -7200 # Node ID 24dbf3f013d962a050882c0c0249a2d6e34ae935 # Parent 0d57277aa54c517936da30d35d4d26689f4c45c6 explicit linking against -lstdc++ and -lm for Linux Standard Base diff -r 0d57277aa54c -r 24dbf3f013d9 OrthancFramework/Resources/CMake/Compiler.cmake --- a/OrthancFramework/Resources/CMake/Compiler.cmake Thu Jul 08 10:59:32 2021 +0200 +++ b/OrthancFramework/Resources/CMake/Compiler.cmake Thu Jul 08 12:56:18 2021 +0200 @@ -42,6 +42,14 @@ # use by "ExternalProject" in CMake SET(CMAKE_LSB_CC $ENV{LSB_CC} CACHE STRING "") SET(CMAKE_LSB_CXX $ENV{LSB_CXX} CACHE STRING "") + + # 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" and after + # "Orthanc-1.9.5", for unclear reasons. Without this option, many + # symbols are left undefined while linking. Similar to: + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001 + link_libraries(stdc++ m) endif()