aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2016-05-03 21:02:46 -0500
committerEmil Velikov <[email protected]>2016-05-23 12:07:46 +0100
commit1f4869a2089c6172feff382e177d74ac68c241a7 (patch)
tree96b5c39d666c27ac5d3ba143082d17f18d47d867 /configure.ac
parent0a4275b5343974073ca7c35fa1ff3c5b581573b8 (diff)
configure.ac: add pthreadstubs support
Add pthreadstubs to avoid pulling in full pthreads library. GBM will be the first user. Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index de62e8babce..3499e99f5e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -800,6 +800,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],