summaryrefslogtreecommitdiff
path: root/pcr/libspnav/Makefile.in.diff
blob: 4c93b9cb60d3caa9b3d35ba44287bbb5339d45ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- Makefile.in.orig	2009-04-18 00:12:45.000000000 +0200
+++ Makefile.in	2009-04-18 00:16:06.000000000 +0200
@@ -4,6 +4,7 @@
 lib_a = libspnav.a
 soname = libspnav.so.0
 lib_so = $(soname).1
+linkname = libspnav.so
 
 CC = gcc
 AR = ar
@@ -34,6 +35,8 @@
 install: $(lib_a) $(lib_so)
 	cp $(lib_a) $(PREFIX)/$(libdir)/$(lib_a)
 	cp $(lib_so) $(PREFIX)/$(libdir)/$(lib_so)
+	ln -s $(lib_so) $(linkname)
+	cp -d $(linkname) $(PREFIX)/$(libdir)/$(linkname)
 	for h in $(hdr); do cp -p $(srcdir)/$$h $(PREFIX)/include/; done
 
 .PHONY: uninstall