tests/xenstore: link in librt if necessary
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Sep 2021 13:10:43 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Sep 2021 13:10:43 +0000 (15:10 +0200)
commit2d4978ead4b98452bc45ebe47952e524b12e2b41
tree51317866b24697b3d15426198fd49e8ede6f848c
parent5325b3eaf6a9d8600bf9e9e7428b5c336fd43c84
tests/xenstore: link in librt if necessary

Old enough glibc has clock_gettime() in librt.so, hence the library
needs to be specified to the linker. Newer glibc has the symbol
available in both libraries, so make sure that libc.so is preferred (to
avoid an unnecessary dependency on librt.so).

Fixes: 93c9edbef51b ("tests/xenstore: Rework Makefile")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
tools/tests/xenstore/Makefile