diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-05-16 20:00:23 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-05-16 19:48:00 +0100 |
commit | c97b4b45e272b45be9c8670623c3075a069aa328 (patch) | |
tree | 382c8cdf5d938368997e190e5bf6a34b7e08d4d5 | |
parent | bd608dea4271ae256bad7dacee6acc605c2d6580 (diff) | |
download | mupdf-c97b4b45e272b45be9c8670623c3075a069aa328.tar.xz |
Only link with X11 for X11 viewer.
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | Makethird | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -176,15 +176,16 @@ MUTOOL := $(addprefix $(OUT)/, mutool) $(MUTOOL) : $(addprefix $(OUT)/, pdfclean.o pdfextract.o pdfinfo.o pdfposter.o pdfshow.o) $(FITZ_LIB) $(THIRD_LIBS) ifeq "$(NOX11)" "" + MUVIEW := $(OUT)/mupdf $(MUVIEW) : $(FITZ_LIB) $(THIRD_LIBS) $(MUVIEW) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o) - $(LINK_CMD) $(X11_LIBS) + $(LINK_CMD) $(SYS_X11_LIBS) MUVIEW_V8 := $(OUT)/mupdf-v8 $(MUVIEW_V8) : $(FITZ_V8_LIB) $(THIRD_LIBS) $(MUVIEW_V8) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o) - $(LINK_V8_CMD) $(X11_LIBS) + $(LINK_V8_CMD) $(SYS_X11_LIBS) endif MUJSTEST_V8 := $(OUT)/mujstest-v8 @@ -253,5 +253,7 @@ ifeq "$(NOX11)" "" SYS_X11_CFLAGS := $(SYS_X11_CFLAGS) SYS_X11_LIBS := $(SYS_X11_LIBS) CFLAGS += $(SYS_X11_CFLAGS) -LIBS += $(SYS_X11_LIBS) +else +SYS_X11_CFLAGS := +SYS_X11_LIBS := endif |