summaryrefslogtreecommitdiffstats
path: root/abs/extra/unrar/unrar-4.2.1-soname.patch
blob: 83ebe9611b31582fc5746feab05195555e67f581 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- makefile.unix	2012-02-23 10:23:14.000000000 +0100
+++ makefile.unix	2012-05-05 12:58:13.000000000 +0200
@@ -131,7 +131,7 @@
 lib:	CXXFLAGS+=$(LIBFLAGS)
 lib:	clean $(OBJECTS) $(LIB_OBJ)
 	@rm -f libunrar.so
-	$(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+	$(LINK) -shared -Wl,-soname,libunrar.so.$(libversion) -o libunrar.so.$(libversion) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
 
 install-unrar:
 			install -D unrar $(DESTDIR)/bin/unrar