summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-05 16:49:04 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-05 16:49:04 +0100
commit6a73fcf4e31732c78ce3e17660dd7ffe39e8eb22 (patch)
tree7d8735288c168b1de27ec302a500aef099d2e63b /Makerules
parentf647515e462a0400ec57b495700c71472cc2982c (diff)
downloadmupdf-6a73fcf4e31732c78ce3e17660dd7ffe39e8eb22.tar.xz
Add threaded operation to mudraw.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index a8257e80..766ad537 100644
--- a/Makerules
+++ b/Makerules
@@ -52,6 +52,7 @@ HAVE_X11 ?= no
else ifeq "$(OS)" "MACOS"
HAVE_X11 ?= yes
+HAVE_PTHREADS ?= yes
# Mac OS X deprecated openssl, so the default is to not include it.
HAVE_OPENSSL ?= no
@@ -83,6 +84,7 @@ RANLIB_CMD = xcrun ranlib $@
else ifeq "$(OS)" "Linux"
HAVE_X11 ?= yes
+HAVE_PTHREADS ?= yes
ifeq "$(shell pkg-config --exists libcrypto && echo yes)" "yes"
SYS_OPENSSL_CFLAGS = -DHAVE_OPENSSL $(shell pkg-config --cflags libcrypto)
@@ -130,6 +132,7 @@ LD = arm-none-linux-gnueabi-gcc
AR = arm-none-linux-gnueabi-ar
CFLAGS += -O3 -mfpu=neon -mcpu=cortex-a8 -mfloat-abi=softfp -ftree-vectorize -ffast-math -fsingle-precision-constant
CROSSCOMPILE=yes
+HAVE_PTHREADS ?= yes
endif
ifeq "$(OS)" "webos-pre-cross"
@@ -223,3 +226,8 @@ ifeq "$(CROSSCOMPILE)" "yes"
HAVE_X11 ?= no
HAVE_GLFW ?= no
endif
+
+ifeq "$(HAVE_PTHREADS)" "yes"
+CFLAGS += -DHAVE_PTHREADS
+LIBS += -lpthread
+endif