Contents of /trunk/libsrtp/patches/libsrtp-1.4.4-shared.patch
Parent Directory | Revision Log
Revision 841 -
(show annotations)
(download)
Thu Jun 11 13:52:08 2009 UTC (15 years, 3 months ago) by niro
File size: 1432 byte(s)
Thu Jun 11 13:52:08 2009 UTC (15 years, 3 months ago) by niro
File size: 1432 byte(s)
libsrtp patches
1 | diff -NrU5 srtp.orig/Makefile.in srtp/Makefile.in |
2 | --- srtp.orig/Makefile.in 2009-04-15 01:46:57.000000000 +0200 |
3 | +++ srtp/Makefile.in 2009-04-15 02:07:43.000000000 +0200 |
4 | @@ -65,11 +65,11 @@ |
5 | |
6 | |
7 | # implicit rules for object files and test apps |
8 | |
9 | %.o: %.c |
10 | - $(COMPILE) -c $< -o $@ |
11 | + $(COMPILE) -fPIC -c $< -o $@ |
12 | |
13 | %$(EXE): %.c |
14 | $(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS) |
15 | |
16 | |
17 | @@ -103,10 +103,13 @@ |
18 | |
19 | libsrtp.a: $(srtpobj) $(cryptobj) $(gdoi) |
20 | ar cr libsrtp.a $^ |
21 | $(RANLIB) libsrtp.a |
22 | |
23 | +libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi) |
24 | + $(CC) $(LDFLAGS) -shared -Wl,-soname,libsrtp.so.1 -o libsrtp.so.1.0 $^ |
25 | + |
26 | # libcryptomath.a contains general-purpose routines that are used to |
27 | # generate tables and verify cryptoalgorithm implementations - this |
28 | # library is not meant to be included in production code |
29 | |
30 | cryptomath = crypto/math/math.o crypto/math/gf2_8.o |
31 | @@ -195,10 +198,15 @@ |
32 | $(INSTALL) -d $(DESTDIR)$(includedir)/srtp |
33 | $(INSTALL) -d $(DESTDIR)$(libdir) |
34 | cp include/*.h $(DESTDIR)$(includedir)/srtp |
35 | cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp |
36 | if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi |
37 | + if [ -f libsrtp.so.1.0 ]; then \ |
38 | + cp libsrtp.so.1.0 $(DESTDIR)$(libdir)/; \ |
39 | + ln -s libsrtp.so.1.0 $(DESTDIR)$(libdir)/libsrtp.so.1; \ |
40 | + ln -s libsrtp.so.1.0 $(DESTDIR)$(libdir)/libsrtp.so; \ |
41 | + fi |
42 | |
43 | uninstall: |
44 | rm -rf $(DESTDIR)$(includedir)/srtp |
45 | rm -rf $(DESTDIR)$(libdir)/libsrtp.a |
46 |