[FFmpeg-devel] [PATCH] configure: use pkg-config for libilbc

James Almer jamrial at gmail.com
Fri Oct 13 21:09:43 EEST 2017

With this, the check will include the needed pthreads ldflags when
pkg-config is invoked with the --static flag.

Signed-off-by: James Almer <jamrial at gmail.com>
Alternatively, i can keep the current check and add $pthreads_extralibs
to it.

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index dc486ed756..749fc073a1 100755
--- a/configure
+++ b/configure
@@ -5997,7 +5997,7 @@ enabled libgme            && { use_pkg_config libgme libgme gme/gme.h gme_new_em
 enabled libgsm            && { for gsm_hdr in "gsm.h" "gsm/gsm.h"; do
                                    check_lib libgsm "${gsm_hdr}" gsm_create -lgsm && break;
                                done || die "ERROR: libgsm not found"; }
-enabled libilbc           && require libilbc ilbc.h WebRtcIlbcfix_InitDecode -lilbc
+enabled libilbc           && require_pkg_config libilbc libilbc ilbc.h WebRtcIlbcfix_InitDecode
 enabled libkvazaar        && require_pkg_config libkvazaar "kvazaar >= 0.8.1" kvazaar.h kvz_api_get
 # While it may appear that require is being used as a pkg-config
 # fallback for libmfx, it is actually being used to detect a different

More information about the ffmpeg-devel mailing list