forked from pikhq/sabotage
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mupdf: fix bug loading mupdf-x11 with shared library build
Error loading shared library build/shared-release/libmupdf.so: No such file or directory (needed by /bin/mupdf-x11) caused by a buggy Makefile adding the full path to the .so at link time instead of -Llocation -lmupdf.
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- mupdf-1.18.0-source.org/Makefile | ||
+++ mupdf-1.18.0-source/Makefile | ||
@@ -61,7 +61,7 @@ | ||
ifdef RANLIB | ||
RANLIB_CMD = $(QUIET_RANLIB) $(RANLIB) $@ | ||
endif | ||
-LINK_CMD = $(QUIET_LINK) $(MKTGTDIR) ; $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
+LINK_CMD = $(QUIET_LINK) $(MKTGTDIR) ; $(CC) $(LDFLAGS) -o $@ $(subst $(MUPDF_LIB),-L$(OUT) -lmupdf,$^) $(LIBS) | ||
TAGS_CMD = $(QUIET_TAGS) ctags -R --c-kinds=+p | ||
WINDRES_CMD = $(QUIET_WINDRES) $(MKTGTDIR) ; $(WINDRES) $< $@ | ||
OBJCOPY_CMD = $(QUIET_OBJCOPY) $(MKTGTDIR) ; $(LD) -r -b binary -z noexecstack -o $@ $< |
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