util: Fix build on old glibc.
authorEric Anholt <eric@anholt.net>
Mon, 31 Jul 2017 21:47:12 +0000 (14:47 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 15 Aug 2017 20:23:54 +0000 (13:23 -0700)
We need to link librt for u_thread.h's clock_gettime() call.

Fixes: b822d9dd67b5 ("gallium/util: move u_queue.{c,h} to src/util")
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/Makefile.am

index a8352a9053e3e712d119c90464047e3e413da264..4512dc99d5e1a7d436dd774f5e3d35035f776184 100644 (file)
@@ -46,7 +46,9 @@ libmesautil_la_SOURCES = \
        $(MESA_UTIL_FILES) \
        $(MESA_UTIL_GENERATED_FILES)
 
-libmesautil_la_LIBADD = $(ZLIB_LIBS)
+libmesautil_la_LIBADD = \
+       $(CLOCK_LIB) \
+       $(ZLIB_LIBS)
 
 libxmlconfig_la_SOURCES = $(XMLCONFIG_FILES)
 libxmlconfig_la_CFLAGS = \