]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: Execute ldconfig to build cache. 42/5042/2
authorJoshua Colp <jcolp@digium.com>
Thu, 16 Feb 2017 16:30:00 +0000 (16:30 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 21 Feb 2017 11:24:53 +0000 (11:24 +0000)
commitd90430953c508670a67de68de400fef44f5e9fba
treef9c3e3527e7042b55f98b35f55b7ab4f53582af8
parent557ef67690e57b11b8d99f9c7cfa67376890dd49
build: Execute ldconfig to build cache.

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.

If DESTDIR is specified, however, the old logic is executed as
the install process may not have permission to alter the ldconfig
cache.

ASTERISK-26705

Change-Id: If4eca46ac510c6fea5568256280ffdb3888d7bb4
main/Makefile