build: do not unconditionally link libpthread
authorJo-Philipp Wich <jo@mein.io>
Fri, 17 Feb 2017 17:19:53 +0000 (18:19 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 17 Feb 2017 17:19:53 +0000 (18:19 +0100)
commit9239b2d2a5856b363fc8770710fecacde9f05a92
treec67c0a34379b0dc7ef0dfc384c248d3afd37e255
parent021ed5c3deec5ae89b47acdd74f9e2c7894ce2e0
build: do not unconditionally link libpthread

Some environments, e.g. musl libc based ones, do not have a dedicated
libpthread, so only link it if it exists.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
src/CMakeLists.txt