Don't create a symlink if there is no $(SHAREDLIBVERSION)
Otherwise we create a symlink with the same name as the target, which will
create a symlink pointing to itself.
diff --git a/Makefile.in b/Makefile.in
index 8ff7305..5f9baa9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -250,7 +250,9 @@
$(INSTALL) -d $(DESTDIR)$(SHAREDLIB_DIR); \
cp libsrtp2.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/; \
cp libsrtp2.$(SHAREDLIBSUFFIXNOVER) $(DESTDIR)$(SHAREDLIB_DIR)/; \
- ln -sfn libsrtp2.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp2.$(SHAREDLIBSUFFIXNOVER); \
+ if [ -n "$(SHAREDLIBVERSION)" ]; then \
+ ln -sfn libsrtp2.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp2.$(SHAREDLIBSUFFIXNOVER); \
+ fi; \
fi
if [ "$(pkgconfig_DATA)" != "" ]; then \
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir); \