From: Nikita Popov Date: Thu, 20 Jun 2019 13:48:48 +0000 (+0200) Subject: Check for dlsym as well X-Git-Tag: php-7.4.0alpha2~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6165c23475d5020cda3794cb684693a7fab9918d;p=php Check for dlsym as well For some reason, when using GCC with address sanitizer, dlopen is available without -ldl, but dlsym still needs it. Explicitly check dlsym so we add the library. --- diff --git a/configure.ac b/configure.ac index 8517441bfa..450de11c16 100644 --- a/configure.ac +++ b/configure.ac @@ -403,6 +403,7 @@ PHP_CHECK_FUNC(gethostbyaddr, nsl) PHP_CHECK_FUNC(yp_get_default_domain, nsl) PHP_CHECK_FUNC(dlopen, dl) +PHP_CHECK_FUNC(dlsym, dl) if test "$ac_cv_func_dlopen" = "yes"; then AC_DEFINE(HAVE_LIBDL, 1, [ ]) fi