diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-07-10 19:52:31 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-07-10 21:59:13 +0800 |
commit | e3fb2f11d92e7a1df9fc1a83ba5d8bd7a5ca18fc (patch) | |
tree | 743cdbf9a594bae74b5e28c149f3b199bafd6443 /Makethird | |
parent | cca0f6ff702cfd9d78b538d190068d82e52f23a6 (diff) | |
download | mupdf-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-- | Makethird | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |