[pgagent] patch: link with -pthread

From: Christoph Berg <myon(at)debian(dot)org>
To: pgAdmin support <pgadmin-support(at)postgresql(dot)org>
Subject: [pgagent] patch: link with -pthread
Date: 2018-07-20 08:55:30
Message-ID: 20180720085529.GC15185@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2018-07-20 08:59:35 Re: [pgagent] patch: supported cmake version
Previous Message Christoph Berg 2018-07-20 08:53:14 Re: [pgagent] patch: supported cmake version