replace: Only link against librt if really needed
authorAndreas Schneider <asn@samba.org>
Mon, 23 Sep 2019 13:14:24 +0000 (15:14 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 25 Sep 2019 15:39:40 +0000 (15:39 +0000)
commit480152dd6729d4c58faca6f3e4fa91ff4614c272
treeef39c16c2365334fe54a194b40d15546e96ba47f
parent952e1812fa9bdc1bac2a7ae5ebb5532f1ea31447
replace: Only link against librt if really needed

fdatasync() and clock_gettime() are provided by glibc on Linux, so there
is no need to link against librt. Checks have been added so if there are
platforms which require it are still functional.

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/replace/wscript