2017-12-31 00:54:47 +00:00
|
|
|
--- mupdf-1.12.0-source.orig/Makefile 2017-12-13 15:00:30.000000000 +0100
|
|
|
|
+++ mupdf-1.12.0-source/Makefile 2017-12-31 00:05:23.003277481 +0100
|
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
# Do not specify CFLAGS or LIBS on the make invocation line - specify
|
|
|
|
# XCFLAGS or XLIBS instead. Make ignores any lines in the makefile that
|
|
|
|
# set a variable that was set on the command line.
|
|
|
|
-CFLAGS += $(XCFLAGS) -Iinclude
|
|
|
|
+CFLAGS += $(XCFLAGS) -Iinclude -fPIC
|
|
|
|
LIBS += $(XLIBS) -lm
|
|
|
|
|
|
|
|
LIBS += $(FREETYPE_LIBS)
|
2018-05-01 22:39:26 +01:00
|
|
|
@@ -312,10 +312,10 @@
|
2017-12-31 00:54:47 +00:00
|
|
|
|
|
|
|
# --- Library ---
|
|
|
|
|
|
|
|
-MUPDF_LIB = $(OUT)/libmupdf.a
|
|
|
|
-THIRD_LIB = $(OUT)/libmupdfthird.a
|
|
|
|
-THREAD_LIB = $(OUT)/libmuthreads.a
|
2018-05-01 22:39:26 +01:00
|
|
|
-PKCS7_LIB = $(OUT)/libmupkcs7.a
|
2017-12-31 00:54:47 +00:00
|
|
|
+MUPDF_LIB = $(OUT)/libmupdf.so
|
|
|
|
+THIRD_LIB = $(OUT)/libmupdfthird.so
|
|
|
|
+THREAD_LIB = $(OUT)/libmuthreads.so
|
2018-05-01 22:39:26 +01:00
|
|
|
+PKCS7_LIB = $(OUT)/libmupkcs7.so
|
2017-12-31 00:54:47 +00:00
|
|
|
|
|
|
|
MUPDF_OBJ := \
|
|
|
|
$(FITZ_OBJ) \
|
2018-05-01 22:39:26 +01:00
|
|
|
@@ -343,13 +343,17 @@
|
|
|
|
$(ZLIB_OBJ) \
|
|
|
|
$(LCMS2_OBJ)
|
2017-12-31 00:54:47 +00:00
|
|
|
|
|
|
|
-$(MUPDF_LIB) : $(MUPDF_OBJ)
|
|
|
|
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB) $(THREAD_LIB)
|
|
|
|
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf.so -Wl,--no-undefined
|
|
|
|
$(THIRD_LIB) : $(THIRD_OBJ)
|
|
|
|
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdfthird.so -Wl,--no-undefined
|
|
|
|
$(THREAD_LIB) : $(THREAD_OBJ)
|
|
|
|
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmuthreads.so -Wl,--no-undefined -lpthread
|
2018-05-01 22:39:26 +01:00
|
|
|
$(PKCS7_LIB) : $(PKCS7_OBJ)
|
|
|
|
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupkcs7.so
|
2017-12-31 00:54:47 +00:00
|
|
|
|
|
|
|
-INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB)
|
2018-05-01 22:39:26 +01:00
|
|
|
+INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) $(THREAD_LIB) $(PKCS7_LIB)
|
2017-12-31 00:54:47 +00:00
|
|
|
|
|
|
|
# --- Tools and Apps ---
|
|
|
|
|