|
|
8102fd |
diff -up libsrtp-2.3.0/Makefile.in.sharedfix libsrtp-2.3.0/Makefile.in
|
|
|
8102fd |
--- libsrtp-2.3.0/Makefile.in.sharedfix 2020-01-07 09:48:36.004217062 -0500
|
|
|
8102fd |
+++ libsrtp-2.3.0/Makefile.in 2020-01-07 09:53:08.117725096 -0500
|
|
|
8102fd |
@@ -106,12 +106,14 @@ bindir = @bindir@
|
|
|
8102fd |
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
8102fd |
pkgconfig_DATA = libsrtp2.pc
|
|
|
8102fd |
|
|
|
8102fd |
-SHAREDLIBVERSION = 1
|
|
|
8102fd |
+SHAREDLIBMINIVER = 1
|
|
|
8102fd |
+SHAREDLIBVERSION = $(SHAREDLIBMINIVER).0.0
|
|
|
8102fd |
ifneq (,$(or $(findstring linux,@host@), $(findstring gnu,@host@)))
|
|
|
8102fd |
SHAREDLIB_DIR = $(libdir)
|
|
|
8102fd |
-SHAREDLIB_LDFLAGS = -shared -Wl,-soname,$@
|
|
|
8102fd |
SHAREDLIBSUFFIXNOVER = so
|
|
|
8102fd |
+SHAREDLIBMINISUFFIX = $(SHAREDLIBSUFFIXNOVER).$(SHAREDLIBMINIVER)
|
|
|
8102fd |
SHAREDLIBSUFFIX = $(SHAREDLIBSUFFIXNOVER).$(SHAREDLIBVERSION)
|
|
|
8102fd |
+SHAREDLIB_LDFLAGS = -shared -Wl,-soname,libsrtp2.$(SHAREDLIBMINISUFFIX)
|
|
|
8102fd |
else ifneq (,$(or $(findstring cygwin,@host@), $(findstring mingw,@host@)))
|
|
|
8102fd |
SHAREDLIB_DIR = $(bindir)
|
|
|
8102fd |
SHAREDLIB_LDFLAGS = -shared -Wl,--out-implib,libsrtp2.dll.a
|
|
|
8102fd |
@@ -166,6 +168,7 @@ libsrtp2.$(SHAREDLIBSUFFIX): $(srtpobj)
|
|
|
8102fd |
$(CC) -shared -o $@ $(SHAREDLIB_LDFLAGS) \
|
|
|
8102fd |
$^ $(LDFLAGS) $(LIBS)
|
|
|
8102fd |
if [ -n "$(SHAREDLIBVERSION)" ]; then \
|
|
|
8102fd |
+ ln -sfn $@ libsrtp2.$(SHAREDLIBMINISUFFIX); \
|
|
|
8102fd |
ln -sfn $@ libsrtp2.$(SHAREDLIBSUFFIXNOVER); \
|
|
|
8102fd |
fi
|
|
|
8102fd |
|
|
|
8102fd |
@@ -288,6 +291,7 @@ install:
|
|
|
8102fd |
cp libsrtp2.$(SHAREDLIBSUFFIXNOVER) $(DESTDIR)$(SHAREDLIB_DIR)/; \
|
|
|
8102fd |
if [ -n "$(SHAREDLIBVERSION)" ]; then \
|
|
|
8102fd |
ln -sfn libsrtp2.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp2.$(SHAREDLIBSUFFIXNOVER); \
|
|
|
8102fd |
+ ln -sfn libsrtp2.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp2.$(SHAREDLIBMINISUFFIX); \
|
|
|
8102fd |
fi; \
|
|
|
8102fd |
fi
|
|
|
8102fd |
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
|