File synergy-1.5.0-pthread.patch of Package synergy

Index: synergy-1.7.4-stable/CMakeLists.txt
===================================================================
--- synergy-1.7.4-stable.orig/CMakeLists.txt
+++ synergy-1.7.4-stable/CMakeLists.txt
@@ -153,6 +153,8 @@ if (UNIX)
 	check_library_exists("pthread" pthread_create "" HAVE_PTHREAD)
 	if (HAVE_PTHREAD)
 		list(APPEND libs pthread)
+		set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
+		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
 	else()
 		message(FATAL_ERROR "Missing library: pthread")
 	endif()
openSUSE Build Service is sponsored by