blob: 78645e48b223e1c382aed26c60e4f7efd458683c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From fa772c2e3d41de4cdd587700f567b5aff59452bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
Date: Wed, 24 Feb 2016 11:23:28 +0200
Subject: [PATCH] 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.
---
Makefile.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index d9b2c4f..c0a67be 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -273,7 +273,9 @@ install:
if [ -f libsrtp.$(SHAREDLIBSUFFIX) ]; then \
$(INSTALL) -d $(DESTDIR)$(SHAREDLIB_DIR); \
cp libsrtp.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/; \
- ln -sfn libsrtp.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp.$(SHAREDLIBSUFFIXNOVER); \
+ if [ -n "$(SHAREDLIBVERSION)" ]; then \
+ ln -sfn libsrtp.$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR)/libsrtp.$(SHAREDLIBSUFFIXNOVER); \
+ fi; \
fi
if [ "$(pkgconfig_DATA)" != "" ]; then \
$(INSTALL) -d $(DESTDIR)$(pkgconfigdir); \
--
2.7.0
|