summaryrefslogtreecommitdiffstats
path: root/abs/core/lockdev/build.patch
blob: f1053d0327215ffa3f6f8b7cbf2fbc7a62a73fd2 (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
commit 0dd47123655c52d68185f06b9da8fb0e1b925400
Author: Ludwig Nussel <ludwig.nussel@suse.de>
Date:   Tue Feb 9 14:56:23 2010 +0100

    RedHat patch 2
    
    - change library file name
    - install devel symlink

diff --git a/Makefile b/Makefile
index b7b4d1f..3b351dd 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ VER	= $(shell expr `pwd` : '.*-\([0-9.]*\)')
 MVER	= ${shell expr `pwd` : '.*-\([0-9]*\).[0-9]*'}
 
 static	= ${libname}.a
-shared	= ${libname}.${VER}.so
+shared	= ${libname}.so.${VER}
 soname	= ${libname}.so.${MVER}
 
 # overwritten by caller (e.g.: debian/rules)
@@ -76,6 +76,7 @@ install_doc:	docs/lockdev.3
 install_run:	${shared}
 	install -m755 -d	${libdir}
 	install -m644 ${shared}	${libdir}
+	ln -s ${shared}		${libdir}/liblockdev.so
 
 .PHONY: clean distclean perl-clean mostyclean 
 perl-clean:	clean