--- synergy-1.7.4-stable/CMakeLists.txt.orig	2015-09-03 18:40:56.538220200 +0200
+++ synergy-1.7.4-stable/CMakeLists.txt	2015-09-04 13:58:25.662602700 +0200
@@ -80,8 +80,10 @@
 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
 
 	if (NOT APPLE)
+		if (dummy)
 		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
 	endif()
+	endif()
 
 	# For config.h, detect the libraries, functions, etc.
 	include(CheckIncludeFiles)
--- synergy-1.7.4-stable/ext/toolchain/commands1.py.orig	2015-09-03 17:31:12.077909300 +0200
+++ synergy-1.7.4-stable/ext/toolchain/commands1.py	2015-09-03 17:32:16.591909300 +0200
@@ -690,7 +690,7 @@
 				if err != 0:
 					raise Exception(gui_make_cmd + ' failed with error: ' + str(err))
 
-			elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'darwin']:
+			elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'darwin', 'cygwin']:
 
 				gui_make_cmd = self.make_cmd + " -w" + args
 				print 'Make GUI command: ' + gui_make_cmd
@@ -1657,7 +1657,7 @@
 	def get_generators(self):
 		if sys.platform == 'win32':
 			return self.win32_generators
-		elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'aix5']:
+		elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'aix5', 'cygwin']:
 			return self.unix_generators
 		elif sys.platform == 'darwin':
 			return self.darwin_generators