diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-08 09:14:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-08 10:59:51 +0000 |
commit | 74177660e2e3837ac3e626feb56df294d260faa9 (patch) | |
tree | bf1cc109d4f5dc2642d44b1363e544c6acd553e0 /main/mupdf/shared-lib.patch | |
parent | 6184d6e1987702994f035b50749e98654ff0e392 (diff) | |
download | aports-74177660e2e3837ac3e626feb56df294d260faa9.tar.bz2 aports-74177660e2e3837ac3e626feb56df294d260faa9.tar.xz |
main/mupdf: move from testing
needed by cups-filters
Diffstat (limited to 'main/mupdf/shared-lib.patch')
-rw-r--r-- | main/mupdf/shared-lib.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/mupdf/shared-lib.patch b/main/mupdf/shared-lib.patch new file mode 100644 index 0000000000..d0e364d247 --- /dev/null +++ b/main/mupdf/shared-lib.patch @@ -0,0 +1,39 @@ +--- mupdf-1.9a-source/Makefile.orig ++++ mupdf-1.9a-source/Makefile +@@ -16,6 +16,7 @@ + # 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 -I$(GEN) ++CFLAGS += -fPIC + LIBS += $(XLIBS) -lm + + LIBS += $(FREETYPE_LIBS) +@@ -52,6 +53,7 @@ + CXX_CMD = $(QUIET_CXX) $(CXX) $(CFLAGS) -o $@ -c $< + AR_CMD = $(QUIET_AR) $(AR) cr $@ $^ + LINK_CMD = $(QUIET_LINK) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) ++LINK_SHARED_CMD = $(QUIET_LINK) $(CC) $(LDFLAGS) -shared -Wl,-soname,$(notdir $@) -o $@ $^ $(LIBS) + MKDIR_CMD = $(QUIET_MKDIR) mkdir -p $@ + RM_CMD = $(QUIET_RM) rm -f $@ + +@@ -141,8 +143,8 @@ + + # --- Library --- + +-MUPDF_LIB = $(OUT)/libmupdf.a +-THIRD_LIB = $(OUT)/libmupdfthird.a ++MUPDF_LIB = $(OUT)/libmupdf.so.0 ++THIRD_LIB = $(OUT)/libmupdfthird.so.0 + + MUPDF_OBJ := $(FITZ_OBJ) $(FONT_OBJ) $(PDF_OBJ) $(XPS_OBJ) $(CBZ_OBJ) $(HTML_OBJ) $(GPRF_OBJ) + THIRD_OBJ := $(FREETYPE_OBJ) $(HARFBUZZ_OBJ) $(JBIG2DEC_OBJ) $(JPEG_OBJ) $(MUJS_OBJ) $(OPENJPEG_OBJ) $(ZLIB_OBJ) +@@ -161,6 +163,9 @@ + $(RM_CMD) + $(AR_CMD) + $(RANLIB_CMD) ++ ++$(OUT)/%.so.0 : $(OUT)/%.a ++ $(LINK_SHARED_CMD) + + $(OUT)/%: $(OUT)/%.o + $(LINK_CMD) |