summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/liblockfile/liblockfile-1.09/liblockfile-fix-nfslib-and-soname.patch
blob: ffd7a40fab3b65813d42c50e72ba832fa8c98246 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Upstream-Status: Inappropriate [no upstream]

* nfslib should use NVER instead of VER
* install the missing soname library

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 Makefile.in         |    9 ++++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 836ca9b..a589fb8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -27,7 +27,7 @@ install:	@INSTALL_TARGETS@
 
 static:		liblockfile.a dotlockfile
 shared:		liblockfile.so dotlockfile
-nfslib:		nfslock.so.$(VER)
+nfslib:		nfslock.so.$(NVER)
 
 liblockfile.a:	lockfile.o
 		$(AR) rv liblockfile.a lockfile.o
@@ -36,7 +36,7 @@ liblockfile.so: liblockfile.a
 		$(CC) -fPIC -shared -Wl,-soname,liblockfile.so.1 \
 			-o liblockfile.so lockfile.o $(LDFLAGS) -lc
 
-nfslock.so.$(VER):	nfslock.o
+nfslock.so.$(NVER):	nfslock.o
 		$(CC) -fPIC -shared -Wl,-soname,nfslock.so.0 \
 			-o nfslock.so.$(NVER) nfslock.o $(LDFLAGS)
 
@@ -59,6 +59,7 @@ install_shared:	shared install_common
 		install -m 755 liblockfile.so \
 			$(ROOT)$(libdir)/liblockfile.so.$(VER)
 		ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so
+		ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so.1
 		if test "$(ROOT)" = ""; then @LDCONFIG@; fi
 
 install_common:
@@ -72,7 +73,9 @@ install_common:
 
 install_nfslib:	nfslib
 		install -d $(ROOT)$(nfslockdir)
-		install -m 755 nfslock.so.$(VER) $(ROOT)$(nfslockdir)
+		install -m 755 nfslock.so.$(NVER) $(ROOT)$(nfslockdir)
+		ln -sf nfslock.so.$(NVER) $(ROOT)$(libdir)/nfslock.so
+		ln -sf nfslock.so.$(NVER) $(ROOT)$(libdir)/nfslock.so.0
 		if test "$(ROOT)" = ""; then @LDCONFIG@; fi
 
 clean:
-- 
1.7.9.5