libpjsip: depend on libsrtp
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 8 Mar 2016 23:06:41 +0000 (00:06 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 9 Mar 2016 06:31:27 +0000 (07:31 +0100)
commita0997f4cb7e858afe2e24c5a011439adc7ca7155
treeb353872986fc5370d2a7cce6193a6bdf27d31b2a
parent8d1c7975fccc214ea0d6518f4ff55220b8b30b68
libpjsip: depend on libsrtp

libpjsip needs libsrtp to build, but it bundles a libsrtp version in
case one is not found during the configure step. The Buildroot policy
in such cases is to force using the external package, so forcibly
depend on libsrtp.

Adding --with-external-srtp also fixes libpjsip not correctly the
libsrtp installed in staging, which shows up with the symptom:

  .../libpjmedia.so: undefined reference to `srtp_deinit'
  collect2: error: ld returned 1 exit status

Fixes:
  http://autobuild.buildroot.org/results/305/305fdc8442cd2e8f51b90485be0dca83ffa36603/
  http://autobuild.buildroot.org/results/a2f/a2f407c1361ac5c24af122445e84645e9aee309d/
  ...and many other similar autobuild failures.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libpjsip/Config.in
package/libpjsip/libpjsip.mk