summaryrefslogtreecommitdiff
blob: b69bd0de1338131ca2043dfd99d3feb2fd96e79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This causes -lpthread to be added to the end of link list, after
objects, as opposed to the middle. This way --as-needed linking
is fixed.
Thanks Kacper Kowalik <xarthisius.kk@gmail.com>

--- sptk-3.5.8.14.orig/src/CMakeLists.txt	2009-12-13 12:39:36.408351609 +0100
+++ sptk-3.5.8.14/src/CMakeLists.txt	2009-12-13 12:54:14.591539074 +0100
@@ -23,7 +23,7 @@
     )
 
 IF (NOT WIN32)
- SET_TARGET_PROPERTIES (sputil3 PROPERTIES LINK_FLAGS "-lpthread")
+ TARGET_LINK_LIBRARIES (sputil3 pthread)
 ENDIF (NOT WIN32)
 
 IF (NOT NO_EXCEL)