]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: eventtest: fix LDADD
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 24 Nov 2016 15:03:39 +0000 (18:03 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 24 Nov 2016 15:10:13 +0000 (18:10 +0300)
Don't explicitly LDADD -lrt, use $(LIB_CLOCK_GETTIME) because
not all platforms have clock_gettime(2) and librt available.

tests/Makefile.am

index 924029abdcc62f4b0152dd9aed9725e9bfe4aaff..6a24861ffe6e9942ff8d540ef76eb86db2af1d3b 100644 (file)
@@ -1310,7 +1310,7 @@ endif WITH_DRIVER_MODULES
 if WITH_LIBVIRTD
 eventtest_SOURCES = \
        eventtest.c testutils.h testutils.c
-eventtest_LDADD = -lrt $(LDADDS)
+eventtest_LDADD = $(LIB_CLOCK_GETTIME) $(LDADDS)
 endif WITH_LIBVIRTD
 
 libshunload_la_SOURCES = shunloadhelper.c