summaryrefslogtreecommitdiff
path: root/main/Makefile
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2016-03-30 17:34:42 -0600
committerGeorge Joseph <george.joseph@fairview5.com>2016-03-30 17:43:56 -0600
commit964f54bd5d9fff378a48cbaed9b7f819df6cdde6 (patch)
treeb4f4d06788221b7d93acce666ee8990af278799a /main/Makefile
parente1fdb0a6da0287452837c25b1295baa30b5866ed (diff)
pjproject_bundled: Fix use of LDCONFIG for shared library link creation
LDCONFIG apparently isn't set to something sane on all systems so the creation of the shared library links fails. Instead of just testing for non-blank, main/Makefile now checks that LDCONFIG is actually executable and reverts to LN if it isn't. This applies to both libasteriskpj and libasteriskssl. Thanks to 'abelbeck' for pointing out that the issue was LDCONFIG. ASTERISK-25873 #close Reported-by: Hans van Eijsden Change-Id: I25b76379bc637726ec044b2c0e709b56b3701729
Diffstat (limited to 'main/Makefile')
-rw-r--r--main/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/main/Makefile b/main/Makefile
index 70b2a3900..a64eabcde 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -224,11 +224,11 @@ endif
$(ASTSSL_LIB): $(ASTSSL_LIB).$(ASTSSL_SO_VERSION)
$(ECHO_PREFIX) echo " [LN] $< -> $@"
-ifneq ($(LDCONFIG),)
- $(CMD_PREFIX) $(LDCONFIG) $(LDCONFIG_FLAGS) . 2>/dev/null
-else
- $(CMD_PREFIX) $(LN) -sf $< $@
-endif
+ $(CMD_PREFIX) if [ -x "$(LDCONFIG)" ] ; then \
+ $(LDCONFIG) $(LDCONFIG_FLAGS) . 2>/dev/null ;\
+ else \
+ $(LN) -sf $< $@ ;\
+ fi
else # Darwin
ASTSSL_LIB:=libasteriskssl.dylib
@@ -304,11 +304,11 @@ $(ASTPJ_LIB).$(ASTPJ_SO_VERSION): libasteriskpj.o libasteriskpj.exports
$(ASTPJ_LIB): $(ASTPJ_LIB).$(ASTPJ_SO_VERSION)
$(ECHO_PREFIX) echo " [LN] $< -> $@"
-ifneq ($(LDCONFIG),)
- $(CMD_PREFIX) $(LDCONFIG) $(LDCONFIG_FLAGS) . 2>/dev/null
-else
- $(CMD_PREFIX) $(LN) -sf $< $@
-endif
+ $(CMD_PREFIX) if [ -x "$(LDCONFIG)" ] ; then \
+ $(LDCONFIG) $(LDCONFIG_FLAGS) . 2>/dev/null ;\
+ else \
+ $(LN) -sf $< $@ ;\
+ fi
else # Darwin
ASTPJ_LIB:=libasteriskpj.dylib