]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjproject_bundled: Fix issue with libasteriskpj needing libresample 90/4290/1
authorGeorge Joseph <gjoseph@digium.com>
Thu, 3 Nov 2016 16:55:06 +0000 (10:55 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 3 Nov 2016 17:14:53 +0000 (12:14 -0500)
commita9992da4aaa4807bac8384ff63e3b3e576d5ad3a
treeec1319f8d4d35a834c04818707fbc7c95e105095
parent57a9797e0ac51eae3b8f3254627646b9698a60d2
pjproject_bundled:  Fix issue with libasteriskpj needing libresample

libresample is only needed by pjproject if we're building pjsua, which
we only do if TEST_FRAMEWORK is selected.  It's required by pjsua to
process audio which is needed by some testsuite tests.  Unfortunately,
pjproject relies on a newer version of libresample than the version
that ships by most distros so we need to compile the version that's
bundled with pjproject.  Since we only need it for pjsua, we DON'T want
it's symbols exposed when we actually build asterisk.

There was a problem however... TEST_FRAMEWORK is only known AFTER we've
already run ./configure on both asterisk and pjproject but pjproject's
./configure needs to test it to know whether to set up to build
libresample or not.  The previous way of figuring this out was to
always tell ./configure "yes" but not actually build the library.  This
caused an issue where building libasteriskpj was being told to include
libresample but it wasn't actually there.

The solution is to still do a default pjproject configure during an
asterisk ./configure but if makeopts or menuselect.makeopts changes
subsequently, we now reconfigure pjproject, taking into account the
current state of TEST_FRAMEWORK.  Previously, if makeopts or
menuselect.makeopts changed, only a recompile of pjproject was done.

Change-Id: I9b5d84c61384a3ae07fe30e85c49698378cc4685
third-party/pjproject/Makefile
third-party/pjproject/Makefile.rules