]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
build: Execute ldconfig to build cache. 81/4981/1
authorJoshua Colp <jcolp@digium.com>
Thu, 16 Feb 2017 16:30:00 +0000 (16:30 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 16 Feb 2017 16:33:20 +0000 (16:33 +0000)
On some platforms a multiarch approach is used for libraries.
The build system does not take this into account and still
places libraries into the lib directory if no --libdir is
specified to configure. On initial startup this results in
libasteriskssl.so not being found, as it is not in the multiarch
lib directory.

This change does the minimally invasive thing and executes
ldconfig so that the libraries in the lib directory are found
and their location cached. By doing so Asterisk starts up fine.

ASTERISK-26705

Change-Id: I6d30b6427e9d5e69470e11327c7ff203fa7da519

main/Makefile

index a51b48bb1013e5530a74af246bd2d03409e8ed4c..da38a3e3e91c6c243d8c34a3fb3fd05b647378e9 100644 (file)
@@ -355,7 +355,7 @@ else # Darwin
 endif
 endif
 ifneq ($(LDCONFIG),)
-       $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
+       $(LDCONFIG)
 endif
        $(LN) -sf asterisk "$(DESTDIR)$(ASTSBINDIR)/rasterisk"
 
@@ -373,7 +373,7 @@ ifneq ($(ASTPJ_LIB).$(ASTPJ_SO_VERSION),.)
        rm -f "$(DESTDIR)$(ASTLIBDIR)/$(ASTPJ_LIB)"
 endif
 ifneq ($(LDCONFIG),)
-       $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
+       $(LDCONFIG)
 endif
 
 clean::