diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-01 11:18:00 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-03 00:09:39 +0200 |
commit | 1c37be6e95ba2b6050502839eb73ca5b3809b71c (patch) | |
tree | 7cd62d6ead87f67fdb7f3e1bb96db16136883c0c /configure | |
parent | 47bc1bdafb0950ccf128eaa491d8fd7cc0978813 (diff) | |
download | ffmpeg-1c37be6e95ba2b6050502839eb73ca5b3809b71c.tar.gz |
configure: check for dlsym as well
For some reason, when compiling with gcc-asan and a recent enough gcc
version(seen on 5.3+ so far), linking dlopen works without -ldl, but
dlsym fails with:
undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
So this patchs checks for both dlopen and dlsym to work for determining
if -ldl is needed.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5379,9 +5379,9 @@ check_code cc arm_neon.h "int16x8_t test = vdupq_n_s16(0)" && enable intrinsics_ check_ldflags -Wl,--as-needed check_ldflags -Wl,-z,noexecstack -if check_func dlopen; then +if check_func dlopen && check_func dlsym; then ldl= -elif check_func dlopen -ldl; then +elif check_func dlopen -ldl && check_func dlsym -ldl; then ldl=-ldl fi |