From: Gert Wollny <gert.wol...@collabora.com>

When moving the CPU tests to src/util the needed bits were no longer pulled
here in when doing debug builds resulting in

g++  -o src/gallium/tests/trivial/quad-tex  ...

src/util/libmesa_util.a(u_cpu_detect.c.o): In function `call_once':
../include/c11/threads_posix.h:96: undefined reference to `pthread_once'
collect2: error: ld returned 1 exit status

Solve this by adding dep_thread to the build dependencies for the test.

Fixes: b02bd3d1cbfdacabc6403f2da7b5d0a9aa527e6
   util: move u_cpu_detect to util
Signed-off-by: Gert Wollny <gert.wol...@collabora.com>
---
 src/gallium/tests/trivial/meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/tests/trivial/meson.build 
b/src/gallium/tests/trivial/meson.build
index bbb25519e1..6f66ac54c0 100644
--- a/src/gallium/tests/trivial/meson.build
+++ b/src/gallium/tests/trivial/meson.build
@@ -24,6 +24,7 @@ foreach t : ['compute', 'tri', 'quad-tex']
     '@0@.c'.format(t),
     include_directories : inc_common,
     link_with : [libmesa_util, libgallium, libpipe_loader_dynamic],
+    dependencies : [dep_thread],
     install : false,
   )
 endforeach
-- 
2.18.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to