pthreadpool: Only link pthreadpool against librt if we have to
commit82c9a6c4b0adfc472b342c898c2cb3b382132c53
authorAndreas Schneider <asn@samba.org>
Mon, 23 Sep 2019 14:10:35 +0000 (23 16:10 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 2 Oct 2019 09:32:23 +0000 (2 09:32 +0000)
tree11d740c130999b67a7210bc51b09db0906caa289
parent7ec980b991fd5b62e5739a5fdb2dcbb1306c52d9
pthreadpool: Only link pthreadpool against librt if we have to

This calls clock_gettime() which is available in glibc on Linux. If the
wscript in libreplace detected that librt is needed for clock_gettime()
we have to link against it.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14140

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Pair-Programmed-With: Isaac Boukris <iboukris@gmail.com>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 4b28239d13b17e42eb5aa4b405342f46347f3de4)
lib/pthreadpool/wscript_build