[lfs-patches] r3732 - trunk/mupdf

bdubbs at higgs.linuxfromscratch.org bdubbs at higgs.linuxfromscratch.org
Sat Apr 21 15:47:16 PDT 2018


Author: bdubbs
Date: Sat Apr 21 15:47:16 2018
New Revision: 3732

Log:
New mupdf patch

Added:
   trunk/mupdf/mupdf-1.13.0-shared_libs-1.patch

Added: trunk/mupdf/mupdf-1.13.0-shared_libs-1.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/mupdf/mupdf-1.13.0-shared_libs-1.patch	Sat Apr 21 15:47:16 2018	(r3732)
@@ -0,0 +1,53 @@
+Submitted By: Bruce Dubbs  <bdubbs at linuxfromscratch dot org>
+Date: 2018-04-21
+Initial Package Version: 1.13
+Upstream Status: Not submitted
+Origin: Self
+Description: Change static libraries to shared libraries
+
+diff -Naur mupdf-1.13.0-source-orig/Makefile mupdf-1.13.0-source/Makefile
+--- mupdf-1.13.0-source-orig/Makefile	2018-04-12 08:14:06.000000000 -0500
++++ mupdf-1.13.0-source/Makefile	2018-04-21 17:15:25.797923084 -0500
+@@ -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)
+@@ -325,10 +325,10 @@
+ 
+ # --- Library ---
+ 
+-MUPDF_LIB = $(OUT)/libmupdf.a
+-THIRD_LIB = $(OUT)/libmupdfthird.a
+-THREAD_LIB = $(OUT)/libmuthreads.a
+-PKCS7_LIB = $(OUT)/libmupkcs7.a
++MUPDF_LIB = $(OUT)/libmupdf.so
++THIRD_LIB = $(OUT)/libmupdfthird.so
++THREAD_LIB = $(OUT)/libmuthreads.so
++PKCS7_LIB = $(OUT)/libmupkcs7.so
+ 
+ MUPDF_OBJ := \
+ 	$(FITZ_OBJ) \
+@@ -355,12 +355,16 @@
+ 	$(ZLIB_OBJ) \
+ 	$(LCMS2_OBJ)
+ 
+-$(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
+ $(PKCS7_LIB) : $(PKCS7_OBJ)
++	$(LINK_CMD) -shared -Wl,-soname -Wl,libmupkcs7.so 
+ 
+-INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB)
++INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) $(THREAD_LIB) $(PKCS7_LIB)
+ 
+ # --- Tools and Apps ---
+ 


More information about the patches mailing list