Mesa (master): util: Fix build on old glibc.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Aug 15 20:31:24 UTC 2017
Module: Mesa
Branch: master
Commit: b94ddc181bc514bd32c1d4103aa1c7582a7a60ff
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b94ddc181bc514bd32c1d4103aa1c7582a7a60ff
Author: Eric Anholt <eric at anholt.net>
Date: Mon Jul 31 14:47:12 2017 -0700
util: Fix build on old glibc.
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 at gmail.com>
---
src/util/Makefile.am | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index a8352a9053..4512dc99d5 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -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 = \
More information about the mesa-commit
mailing list