[pgagent] patch: link with -pthread - Mailing list pgadmin-support

From Christoph Berg
Subject [pgagent] patch: link with -pthread
Date
Msg-id 20180720085529.GC15185@msg.df7cb.de
Whole thread Raw
Responses Re: [pgagent] patch: link with -pthread  (Dave Page <dpage@pgadmin.org>)
List pgadmin-support
All non-x868 architectures need -pthread to link with threads:

https://buildd.debian.org/status/logs.php?pkg=pgagent&ver=4.0.0-1&suite=sid

This patch fixes the problem:

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -135,7 +135,7 @@ ENDIF(WIN32)

 ADD_EXECUTABLE(pgagent ${_srcs})
 TARGET_LINK_LIBRARIES(
-        pgagent ${PG_LIBRARIES} ${Boost_LIBRARIES}
+        pgagent ${PG_LIBRARIES} ${Boost_LIBRARIES} -pthread
 )

 # Installation


Christoph


pgadmin-support by date:

Previous
From: Christoph Berg
Date:
Subject: Re: [pgagent] patch: supported cmake version
Next
From: Dave Page
Date:
Subject: Re: [pgagent] patch: supported cmake version