Skip to content

Commit

Permalink
Try to fix osx patch
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Aug 24, 2022
1 parent 4716f64 commit a7960a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions recipe/Makefile-shared-libs-osx.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Makefile.ori 2022-08-15 23:32:42.950710308 -0400
+++ Makefile 2022-08-16 16:37:05.719662262 -0400
+++ Makefile 2022-08-23 22:59:45.599338377 -0400
@@ -21,7 +21,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
Expand All @@ -9,7 +9,7 @@
LIBS += $(XLIBS) -lm

ifneq ($(threading),no)
@@ -232,46 +232,25 @@
@@ -232,46 +232,27 @@

# --- Library ---

Expand Down Expand Up @@ -55,17 +55,19 @@

-$(MUPDF_LIB) : $(MUPDF_OBJ)
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB) $(THREAD_LIB)
+ $(LINK_CMD) -shared -Wl,-install_name -Wl,libmupdf.dylib -undefined dynamic_lookup
+ $(LINK_CMD) -shared -Wl,-install_name -Wl,libmupdf.dylib -undefined dynamic_lookup $(THIRD_LIBS)
$(THIRD_LIB) : $(THIRD_OBJ)
+ $(LINK_CMD) -shared -Wl,-install_name -Wl,libmupdf-third.dylib -undefined dynamic_lookup
$(THREAD_LIB) : $(THREAD_OBJ)
+ $(LINK_CMD) -shared -Wl,-install_name -Wl,libmupdf-threads.dylib -undefined dynamic_lookup -lpthread
$(PKCS7_LIB) : $(PKCS7_OBJ)
+ $(LINK_CMD) -v -shared -Wl,-install_name -Wl,libmupdf-pkcs7.dylib -undefined dynamic_lookup
+
+LIBS_TO_INSTALL_IN_BIN := $(MUPDF_LIB) $(THIRD_LIB) $(THREAD_LIB) $(PKCS7_LIB)

# --- Main tools and viewers ---

@@ -416,10 +395,10 @@
@@ -416,10 +397,10 @@
install -m 644 docs/man/*.1 $(DESTDIR)$(mandir)/man1

install -d $(DESTDIR)$(docdir)
Expand Down

0 comments on commit a7960a5

Please sign in to comment.