aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-06-02 21:19:22 +0200
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-06-08 21:35:46 +0200
commitfa25bf1d69df6290d2dd19d6fa4ba6fea4ebe88a (patch)
treeb95ea79935de458d584ee39ef9afa1a6a570daaa
parentb91a6cc49acb2594bb3d5a357b32af5ff916c095 (diff)
downloadbuildroot-fa25bf1d69df6290d2dd19d6fa4ba6fea4ebe88a.tar.gz
buildroot-fa25bf1d69df6290d2dd19d6fa4ba6fea4ebe88a.tar.bz2
package/poppler: fix build with cmake < 3.10
poppler requires threads, and our compiler always accepts the -pthread argument, so THREADS_HAVE_PTHREAD_ARG can safely be set to ON. Fixes: - http://autobuild.buildroot.org/results/f9e24d38d3aa4519615c5a0ae7f62af610df976f Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Arnout: set THREADS_HAVE_PTHREAD_ARG instead of THREADS_PTHREAD_ARG, and set it to ON instead of OFF because we always have threads.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--package/poppler/poppler.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/poppler/poppler.mk b/package/poppler/poppler.mk
index a2bb7e3049..37566504e9 100644
--- a/package/poppler/poppler.mk
+++ b/package/poppler/poppler.mk
@@ -20,6 +20,9 @@ POPPLER_CONF_OPTS = \
-DENABLE_GOBJECT_INTROSPECTION=OFF \
-DENABLE_GTK_DOC=OFF
+# cmake older than 3.10 requires this to avoid try_run() in FindThreads
+POPPLER_CONF_OPTS += -DTHREADS_HAVE_PTHREAD_ARG=ON
+
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
POPPLER_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
endif