--- CMakeLists.txt.orig 2020-08-03 13:43:47 UTC +++ CMakeLists.txt @@ -13,8 +13,8 @@ if(NOT CMAKE_BUILD_TYPE) FORCE) endif() -option(ICINGA2_WITH_MYSQL "Build the MySQL IDO module" ON) -option(ICINGA2_WITH_PGSQL "Build the PostgreSQL IDO module" ON) +option(ICINGA2_WITH_MYSQL "Build the MySQL IDO module" OFF) +option(ICINGA2_WITH_PGSQL "Build the PostgreSQL IDO module" OFF) option(ICINGA2_WITH_CHECKER "Build the checker module" ON) option(ICINGA2_WITH_COMPAT "Build the compat module" ON) option(ICINGA2_WITH_LIVESTATUS "Build the Livestatus module" ON) @@ -260,6 +260,12 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -pthread") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -pthread") endif() +endif() + +if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD.*") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lexecinfo") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lexecinfo") + set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} -lexecinfo") endif() include(CheckCXXCompilerFlag)