File: link_pthread

package info (click to toggle)
pgagent 4.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 456 kB
  • sloc: cpp: 1,913; sql: 1,739; xml: 100; ansic: 58; makefile: 31; sh: 18
file content (13 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
All non-x86 architectures need -pthread to link with threads enabled.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -140,7 +140,7 @@ TARGET_LINK_LIBRARIES(
 )
 ELSE()
 TARGET_LINK_LIBRARIES(
-        pgagent ${PG_LIBRARIES} ${Boost_LIBRARIES}
+        pgagent ${PG_LIBRARIES} ${Boost_LIBRARIES} -pthread
 )
 ENDIF()