1 diff -up libsrtp-2.3.0/Makefile.in.sharedfix libsrtp-2.3.0/Makefile.in
2 --- libsrtp-2.3.0/Makefile.in.sharedfix 2020-01-07 09:48:36.004217062 -0500
3 +++ libsrtp-2.3.0/Makefile.in 2020-01-07 09:53:08.117725096 -0500
4 @@ -106,12 +106,14 @@ bindir = @bindir@
5 pkgconfigdir = $(libdir)/pkgconfig
6 pkgconfig_DATA = libsrtp2.pc
7
8 -SHAREDLIBVERSION = 1
9 +SHAREDLIBMINIVER = 1
10 +SHAREDLIBVERSION = $(SHAREDLIBMINIVER).0.0
11 ifneq (,$(or $(findstring linux,@host@), $(findstring gnu,@host@)))
12 SHAREDLIB_DIR = $(libdir)
13 -SHAREDLIB_LDFLAGS = -shared -Wl,-soname,$@
14 SHAREDLIBSUFFIXNOVER = so
15 +SHAREDLIBMINISUFFIX = $(SHAREDLIBSUFFIXNOVER).$(SHAREDLIBMINIVER)
16 SHAREDLIBSUFFIX = $(SHAREDLIBSUFFIXNOVER).$(SHAREDLIBVERSION)
17 +SHAREDLIB_LDFLAGS = -shared -Wl,-soname,libsrtp2.$(SHAREDLIBMINISUFFIX)
18 else ifneq (,$(or $(findstring cygwin,@host@), $(findstring mingw,@host@)))
19 SHAREDLIB_DIR = $(bindir)
20 SHAREDLIB_LDFLAGS = -shared -Wl,--out-implib,libsrtp2.dll.a
21 @@ -166,6 +168,7 @@ libsrtp2.$(SHAREDLIBSUFFIX): $(srtpobj)
22 $(CC) -shared -o $@ $(SHAREDLIB_LDFLAGS) \
23 $^ $(LDFLAGS) $(LIBS)
24 if [ -n "$(SHAREDLIBVERSION)" ]; then \
25 + ln -sfn $@ libsrtp2.$(SHAREDLIBMINISUFFIX); \
26 ln -sfn $@ libsrtp2.$(SHAREDLIBSUFFIXNOVER); \
27 fi
28
29 @@ -288,6 +291,7 @@ install:
30 cp libsrtp2.$(SHAREDLIBSUFFIXNOVER) $(DESTDIR)$(SHAREDLIB_DIR)/; \
31 if [ -n "$(SHAREDLIBVERSION)" ]; then \
32 ln -sfn libsrtp2.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp2.$(SHAREDLIBSUFFIXNOVER); \
33 + ln -sfn libsrtp2.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp2.$(SHAREDLIBMINISUFFIX); \
34 fi; \
35 fi
36 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
|