meson: Add dep_thread dependency.

Submitted by Vinson Lee on June 24, 2019, 6:11 p.m.

Details

Message ID 20190624181139.25818-1-vlee@freedesktop.org
State New
Headers show
Series "meson: Add dep_thread dependency." ( rev: 2 ) in Mesa

Not browsing as part of any series.

Commit Message

Vinson Lee June 24, 2019, 6:11 p.m.
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 <fdo-bugs@engestrom.ch>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
---
 src/gallium/tests/trivial/meson.build | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/src/gallium/tests/trivial/meson.build b/src/gallium/tests/trivial/meson.build
index bbb25519e12..1f912d5aa46 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