blob: d56ec3e0b25cbd130c50e9b7ba18e309b261c9a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
diff --git a/Makefile b/Makefile
index 811ade9..d57a631 100644
--- a/Makefile
+++ b/Makefile
@@ -342,13 +342,12 @@ ifeq ($(shared),yes)
endif
endif
else
- MUPDF_LIB = $(OUT)/libmupdf.a
- ifneq ($(THIRD_OBJ),)
- # omit libmupdf-third if there is nothing in it
- THIRD_LIB = $(OUT)/libmupdf-third.a
- endif
- $(MUPDF_LIB) : $(MUPDF_OBJ)
- $(THIRD_LIB) : $(THIRD_OBJ)
+ MUPDF_LIB = libmupdf.so.$(GENTOO_PV)
+ THIRD_LIB =
+ MUPDF_STATIC = $(OUT)/libmupdf.a
+ $(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_OBJ)
+ $(QUIET_LINK) $(CC) $(LDFLAGS) --shared -Wl,-soname -Wl,$(MUPDF_LIB) -o $@ $^ $(THIRD_LIBS) $(LIBS)
+ $(MUPDF_STATIC): $(MUPDF_OBJ) $(THIRD_OBJ)
endif
ifneq ($(USE_SYSTEM_GLUT),yes)
@@ -496,7 +495,6 @@ ifeq ($(shared),yes)
endif
else
install -m 644 $(MUPDF_LIB) $(DESTDIR)$(libdir)
- install -m 644 $(THIRD_LIB) $(DESTDIR)$(libdir)
endif
install-tools: tools
|