mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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.
This commit is contained in:
parent
47bc1bdafb
commit
1c37be6e95
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user