[FFmpeg-cvslog] configure: fix detecting libdl when dlsym requires extra linker flags

James Almer git at videolan.org
Thu Oct 5 01:14:03 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Oct  4 18:55:32 2017 -0300| [ede233a278896209cb78a1c298b5ed44d4792a23] | committer: James Almer

configure: fix detecting libdl when dlsym requires extra linker flags

Regression since 84b3f53acadced2dd31f6be95b491b25183b8c22.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ede233a278896209cb78a1c298b5ed44d4792a23
---

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

diff --git a/configure b/configure
index 2efc79e74d..391c141e7a 100755
--- a/configure
+++ b/configure
@@ -5872,7 +5872,7 @@ enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion    -lbz2
 enabled  lzma && check_lib lzma   lzma.h lzma_version_number -llzma
 
 # On some systems dynamic loading requires no extra linker flags
-check_lib libdl dlfcn.h dlopen || { check_func dlsym -ldl && check_lib libdl dlfcn.h dlopen -ldl; }
+check_lib libdl dlfcn.h "dlopen dlsym" || check_lib libdl dlfcn.h "dlopen dlsym" -ldl
 
 check_lib libm math.h sin -lm && LIBM="-lm"
 



More information about the ffmpeg-cvslog mailing list