[icinga-checkins] icinga.org: icinga2/master: Add -pthread to build flags

git at icinga.org git at icinga.org
Tue Feb 16 13:09:41 CET 2016


Module: icinga2
Branch: master
Commit: 9e9298f4face56f891054c25675b05e6f6771faa
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=9e9298f4face56f891054c25675b05e6f6771faa

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Tue Feb 16 13:08:21 2016 +0100

Add -pthread to build flags

refs #10963

---

 CMakeLists.txt |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 04a5b77..c81fa2a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -140,8 +140,8 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lpthread")
     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lpthread")
   else()
-    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -pthread")
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -pthread")
   endif()
 
   if(NOT CMAKE_SYSTEM_NAME MATCHES AIX AND NOT CMAKE_SYSTEM_NAME MATCHES OpenBSD AND NOT CMAKE_SYSTEM_NAME MATCHES SunOS)



More information about the icinga-checkins mailing list