[Mesa-dev] [PATCH v2 8/9] configure.ac: add pthreadstubs support

Rob Herring robh at kernel.org
Wed May 4 02:02:46 UTC 2016


Add pthreadstubs to avoid pulling in full pthreads library. GBM will be the
first user.

Signed-off-by: Rob Herring <robh at kernel.org>
---
v2:
- new patch

 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 023110e..f854f6a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -799,6 +799,10 @@ dnl to -pthread, which causes problems if we need -lpthread to appear in
 dnl pkgconfig files.
 test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"

+PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)
+AC_SUBST(PTHREADSTUBS_CFLAGS)
+AC_SUBST(PTHREADSTUBS_LIBS)
+
 dnl SELinux awareness.
 AC_ARG_ENABLE([selinux],
     [AS_HELP_STRING([--enable-selinux],
--
2.7.4



More information about the mesa-dev mailing list