summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-10-04 18:55:32 -0300
committerJames Almer <jamrial@gmail.com>2017-10-04 18:55:32 -0300
commitede233a278896209cb78a1c298b5ed44d4792a23 (patch)
tree6b20a40e366f93fdc2a2f04b70c9c779872d0c1e /configure
parentb6782a192e18161f33fc5e943b6f33dcb97e7287 (diff)
configure: fix detecting libdl when dlsym requires extra linker flags
Regression since 84b3f53acadced2dd31f6be95b491b25183b8c22.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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"