srtp/srtp-1.4.4_20140620git-soname.patch

30 lines
1.2 KiB
Diff
Raw Permalink Normal View History

diff -Nru libsrtp-1.4.4_20140620git.orig/Makefile.in libsrtp-1.4.4_20140620git/Makefile.in
--- libsrtp-1.4.4_20140620git.orig/Makefile.in 2014-06-20 13:39:30.000000000 +0200
+++ libsrtp-1.4.4_20140620git/Makefile.in 2014-06-20 13:47:09.941763395 +0200
@@ -116,8 +116,8 @@
$(RANLIB) libsrtp.a
libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi)
- $(CC) -shared -Wl,-soname,libsrtp.so $(LDFLAGS) \
- -o libsrtp.so $^
+ $(CC) -shared -Wl,-soname,$@.0 $(LDFLAGS) \
+ -o $@.0.0.0 $^
# libcryptomath.a contains general-purpose routines that are used to
# generate tables and verify cryptoalgorithm implementations - this
@@ -215,12 +215,12 @@
cp $(srcdir)/crypto/include/*.h $(DESTDIR)$(includedir)/srtp
if [ "$(srcdir)" != "." ]; then cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp; fi
if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi
- if [ -f libsrtp.so ]; then cp libsrtp.so $(DESTDIR)$(libdir)/; fi
+ if [ -f libsrtp.so.0.0.0 ]; then cp libsrtp.so.0.0.0 $(DESTDIR)$(libdir)/; fi
uninstall:
rm -f $(DESTDIR)$(includedir)/srtp/*.h
rm -f $(DESTDIR)$(libdir)/libsrtp.a
- rm -f $(DESTDIR)$(libdir)/libsrtp.so
+ rm -f $(DESTDIR)$(libdir)/libsrtp.so.0.0.0
-rmdir $(DESTDIR)$(includedir)/srtp
clean: