title: PJSIP + FFMPEG build error
body: <p>I'm trying to build PJSIP with FFMPEG for Android.
  For building FFMPEG with rtmp and openssl, I use this project:
  <a href="https://github.com/cine-io/android-ffmpeg-with-rtmp" rel="nofollow noreferrer">https://github.com/cine-io/android-ffmpeg-with-rtmp</a></p>
  
  <p>and it compiles pretty well.</p>
  
  <p>Then I'm compiling pjsip 2.6 with ffmpeg. Here is the part from my <strong>build</strong> file:</p>
  
  <pre><code>    APP_PLATFORM=android-${TARGET_ANDROID_API} NDK_TOOLCHAIN_VERSION=4.9 TARGET_ABI=$arch ./configure-android --use-ndk-cflags \
                                       --with-ssl="${OPENSSL_BUILD_OUT_PATH}/libs/${arch}" \
                                       --with-ffmpeg="${BASE_DIR}/ffmpeg-output"
                                       &gt;&gt;"${FINAL_BUILD_LOGS}/${arch}.log" 2&gt;&amp;1
  </code></pre>
  
  <p>My target ABI is <strong>armeabi</strong>.</p>
  
  <p><strong>Also, i've defined these two flags:</strong></p>
  
  <p>#define PJMEDIA_HAS_VIDEO 1</p>
  
  <p>#define PJMEDIA_HAS_FFMPEG 1</p>
  
  <p>But the build failed with a bunch of these two errors:</p>
  
  <p>error: cannot find -lbz2</p>
  
  <p>error: cannot find -lasound</p>
  
  <p>A have libasound2-dev and bzip2 installed on my Ubuntu 16.04 LTS VM.</p>
  
  <p>Before that, I've successfully made pjsip builds with OpenH264 with no errors like this.</p>
  
  <p>Is there any way to tell linker(or whatever it is) how to find those packages? </p>