configure.ac: add -pthread to PTHREAD_LIBS
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 4 Jun 2017 23:03:59 +0000 (00:03 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 15 Jun 2017 22:24:26 +0000 (23:24 +0100)
commite5aa806e5f01b842d1af4775f8e4c53282908304
treefe80b396913327e4345565556b656de3ec2f4392
parentfcbb93e860246375d03f280f927f79d3645a8988
configure.ac: add -pthread to PTHREAD_LIBS

As described inline - follow what's written in the manual and what works
for all platforms that Mesa supports.

We want to untangle things leaving only -pthread, yet that has a
potential of causing regressions. Thus we'll do it as a follow-up patch.

As a nice side-effect this resolves issues, where the system lacks
libpthread.so, yet the linker does not warn about it and we and up with
unresolved symbols.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101071
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
configure.ac