summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-05-08 14:07:01 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-05-08 14:19:39 +0200
commit2ad14d533de5b91e4f40ce01077efcdeb201b8ce (patch)
treef4e9887a22d8a986bc19390b0256f0600f087ebf
parentb2f7be4877598bdba3676ec93fcd004f275ccce5 (diff)
downloadmupdf-2ad14d533de5b91e4f40ce01077efcdeb201b8ce.tar.xz
Fix curl build with thirdparty module when system curl is available too.
-rw-r--r--Makefile2
-rw-r--r--Makerules3
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4b87930a..30f91807 100644
--- a/Makefile
+++ b/Makefile
@@ -264,7 +264,7 @@ ifeq "$(HAVE_CURL)" "yes"
MUVIEW_X11_CURL := $(OUT)/mupdf-x11-curl
$(MUVIEW_X11_CURL) : $(MUPDF_LIB) $(THIRD_LIBS) $(CURL_LIB)
$(MUVIEW_X11_CURL) : $(addprefix $(OUT)/platform/x11/curl/, x11_main.o x11_image.o pdfapp.o curl_stream.o)
- $(LINK_CMD) $(X11_LIBS) $(CURL_LIBS)
+ $(LINK_CMD) $(X11_LIBS) $(CURL_LIBS) $(SYS_CURL_DEPS)
endif
endif
diff --git a/Makerules b/Makerules
index 6b1b3afd..75573dab 100644
--- a/Makerules
+++ b/Makerules
@@ -67,9 +67,8 @@ ifeq "$(shell pkg-config --exists libcurl && echo yes)" "yes"
HAVE_CURL = yes
SYS_CURL_CFLAGS = $(shell pkg-config --cflags libcurl)
SYS_CURL_LIBS = $(shell pkg-config --libs libcurl)
-else
-SYS_CURL_DEPS = -lpthread -lrt
endif
+SYS_CURL_DEPS = -lpthread -lrt
SYS_X11_CFLAGS = $(shell pkg-config --cflags x11 xext)
SYS_X11_LIBS = $(shell pkg-config --libs x11 xext)