From dd4fde8f674f5e3efa19e929f97de4ecfd82391b Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 27 Sep 2012 15:49:52 -0700 Subject: [PATCH] build: Set PTHREAD_LIBS for pkgconfig files if empty --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 770df2f1a29..dc2720da088 100644 --- a/configure.ac +++ b/configure.ac @@ -509,6 +509,10 @@ AC_CHECK_DECLS([signbit],[], dnl Check for pthreads AX_PTHREAD +dnl AX_PTHREADS leaves PTHREAD_LIBS empty for gcc and sets PTHREAD_CFLAGS +dnl to -pthread, which causes problems if we need -lpthread to appear in +dnl pkgconfig files. +test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread" dnl SELinux awareness. AC_ARG_ENABLE([selinux], -- 2.30.2