summaryrefslogtreecommitdiff
path: root/Makethird
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-07-10 19:52:31 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-07-10 21:59:13 +0800
commite3fb2f11d92e7a1df9fc1a83ba5d8bd7a5ca18fc (patch)
tree743cdbf9a594bae74b5e28c149f3b199bafd6443 /Makethird
parentcca0f6ff702cfd9d78b538d190068d82e52f23a6 (diff)
downloadmupdf-e3fb2f11d92e7a1df9fc1a83ba5d8bd7a5ca18fc.tar.xz
Make threading a compile-time option and propagate it to all tools.
Also fix a typo causing the help message not to be shown when threading is enabled.
Diffstat (limited to 'Makethird')
-rw-r--r--Makethird10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makethird b/Makethird
index 7744072d..a226249c 100644
--- a/Makethird
+++ b/Makethird
@@ -763,7 +763,9 @@ endif
# --- pthread ---
-#ifeq "$(HAVE_PTHREAD)" "yes"
-PTHREAD_CFLAGS := $(SYS_PTHREAD_CFLAGS)
-PTHREAD_LIBS := $(SYS_PTHREAD_LIBS)
-#endif
+ifneq "$(threading)" "no"
+ifeq "$(HAVE_PTHREAD)" "yes"
+THREADING_CFLAGS := $(SYS_PTHREAD_CFLAGS) -DHAVE_PTHREAD
+THREADING_LIBS := $(SYS_PTHREAD_LIBS)
+endif
+endif