[Mesa-dev] [PATCH] intel/aubinator_error_decode: link libm

Jonathan Gray jsg at jsg.id.au
Thu Nov 1 04:05:34 UTC 2018


aubinator_error_decode needs to link libm to build on OpenBSD/i386
../../src/util/.libs/libmesautil.a(libmesautil_la-half_float.o): In function `_mesa_float_to_half':
half_float.c:(.text+0x91): undefined reference to `lrintf'
half_float.c:(.text+0xc1): undefined reference to `lrintf'

Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
Cc: mesa-stable at lists.freedesktop.org
---
 src/intel/Makefile.tools.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/Makefile.tools.am b/src/intel/Makefile.tools.am
index 4809962b188..da49d37a728 100644
--- a/src/intel/Makefile.tools.am
+++ b/src/intel/Makefile.tools.am
@@ -61,7 +61,8 @@ tools_aubinator_error_decode_LDADD = \
 	isl/libisl.la \
 	$(top_builddir)/src/util/libmesautil.la \
 	$(PTHREAD_LIBS) \
-	$(ZLIB_LIBS)
+	$(ZLIB_LIBS) \
+	-lm
 
 tools_aubinator_error_decode_CFLAGS = \
 	$(AM_CFLAGS) \
-- 
2.19.1



More information about the mesa-dev mailing list