File synergy-1.5.0-pthread.patch of Package synergy

--- synergy-core-1.9.1-stable/CMakeLists.txt	2018-04-10 12:18:42.000000000 +0200
+++ synergy-core-1.9.1-stable/CMakeLists.txt.new	2018-06-11 15:59:26.986183205 +0200
@@ -125,6 +125,8 @@ if (UNIX)
     # pthread is used on both Linux and Mac
     check_library_exists ("pthread" pthread_create "" HAVE_PTHREAD)
     if (HAVE_PTHREAD)
+         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
+         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
         list (APPEND libs pthread)
     else()
         message (FATAL_ERROR "Missing library: pthread")
openSUSE Build Service is sponsored by