meson: Add dep_thread dependency.
authorVinson Lee <vlee@freedesktop.org>
Thu, 13 Jun 2019 22:08:27 +0000 (15:08 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 13 Jul 2019 18:39:26 +0000 (11:39 -0700)
Fix this build error on Ubuntu 18.04.

/usr/bin/ld: src/util/libmesa_util.a(u_cpu_detect.c.o): undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110663
Suggested-by: Eric Engestrom <eric@@engestrom.ch>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Eric Engestrom <eric@engestrom.ch>
src/gallium/tests/trivial/meson.build

index bbb25519e12ff466ce46a2c55c8b13882319b550..1f912d5aa46a16a06eda985918e1ac8af605dad3 100644 (file)
@@ -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