-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
96 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,25 @@ | ||
--- Makefile.orig 2020-03-25 11:02:34.874709800 -0500 | ||
+++ Makefile 2020-04-03 13:06:00.681559332 -0500 | ||
+++ Makefile 2020-03-26 15:50:24.164426027 -0500 | ||
@@ -20,7 +20,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 | ||
|
||
ifneq ($(threading),no) | ||
@@ -189,17 +189,21 @@ | ||
|
||
# --- Library --- | ||
|
||
-MUPDF_LIB = $(OUT)/libmupdf.a | ||
-THIRD_LIB = $(OUT)/libmupdf-third.a | ||
-THREAD_LIB = $(OUT)/libmupdf-threads.a | ||
-PKCS7_LIB = $(OUT)/libmupdf-pkcs7.a | ||
+MUPDF_LIB = $(OUT)/libmupdf.so | ||
+THIRD_LIB = $(OUT)/libmupdf-third.so | ||
+THREAD_LIB = $(OUT)/libmupdf-threads.so | ||
+PKCS7_LIB = $(OUT)/libmupdf-pkcs7.so | ||
|
||
-$(MUPDF_LIB) : $(MUPDF_OBJ) | ||
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB) $(THREAD_LIB) | ||
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf.so -Wl,--no-undefined $(THIRD_LIBS) | ||
$(THIRD_LIB) : $(THIRD_OBJ) | ||
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf-third.so -Wl,--no-undefined | ||
$(THREAD_LIB) : $(THREAD_OBJ) | ||
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf-threads.so -Wl,--no-undefined -lpthread | ||
$(PKCS7_LIB) : $(PKCS7_OBJ) | ||
+ $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf-pkcs7.so | ||
|
||
-INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) | ||
+INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) $(THREAD_LIB) $(PKCS7_LIB) | ||
@@ -415,10 +415,10 @@ | ||
install -m 644 docs/man/*.1 $(DESTDIR)$(mandir)/man1 | ||
|
||
# --- Main tools and viewers --- | ||
install -d $(DESTDIR)$(docdir) | ||
- install -d $(DESTDIR)$(docdir)/examples | ||
+ #install -d $(DESTDIR)$(docdir)/examples | ||
install -m 644 README COPYING CHANGES $(DESTDIR)$(docdir) | ||
- install -m 644 docs/*.html docs/*.css docs/*.png $(DESTDIR)$(docdir) | ||
- install -m 644 docs/examples/* $(DESTDIR)$(docdir)/examples | ||
+ #install -m 644 docs/*.html docs/*.css docs/*.png $(DESTDIR)$(docdir) | ||
+ #install -m 644 docs/examples/* $(DESTDIR)$(docdir)/examples | ||
|
||
tarball: | ||
bash scripts/archive.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters