pthreadpool: Only link pthreadpool against librt if we have to
commit4b28239d13b17e42eb5aa4b405342f46347f3de4
authorAndreas Schneider <asn@samba.org>
Mon, 23 Sep 2019 14:10:35 +0000 (23 16:10 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 25 Sep 2019 15:39:40 +0000 (25 15:39 +0000)
tree6bf7fa02f58a03b11d89c87f88312db716d80f33
parent480152dd6729d4c58faca6f3e4fa91ff4614c272
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>
lib/pthreadpool/wscript_build