From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-misc/synergy/files: synergy-1.4.12-pthread.patch |
Date: | Sat, 26 Oct 2013 15:59:11 |
Message-Id: | 20131026155906.97C1220035@flycatcher.gentoo.org |
1 | jer 13/10/26 15:59:06 |
2 | |
3 | Added: synergy-1.4.12-pthread.patch |
4 | Log: |
5 | Append -pthread to CXXFLAGS not CFLAGS (bug #486174 by Vincent de Phily). |
6 | |
7 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
8 | |
9 | Revision Changes Path |
10 | 1.1 x11-misc/synergy/files/synergy-1.4.12-pthread.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/synergy/files/synergy-1.4.12-pthread.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/synergy/files/synergy-1.4.12-pthread.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: synergy-1.4.12-pthread.patch |
16 | =================================================================== |
17 | --- a/CMakeLists.txt |
18 | +++ b/CMakeLists.txt |
19 | @@ -136,7 +140,8 @@ |
20 | # pthread is used on both Linux and Mac |
21 | check_library_exists("pthread" pthread_create "" HAVE_PTHREAD) |
22 | if (HAVE_PTHREAD) |
23 | - list(APPEND libs pthread) |
24 | + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") |
25 | + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") |
26 | else (HAVE_PTHREAD) |
27 | message(FATAL_ERROR "Missing library: pthread") |
28 | endif() |