]> granicus.if.org Git - php/commitdiff
Check for dlsym as well
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 20 Jun 2019 13:48:48 +0000 (15:48 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 20 Jun 2019 14:23:04 +0000 (16:23 +0200)
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.

configure.ac

index 8517441bfae56e660d52a3072e3b525fb8bac770..450de11c16ad4233080d7c1d8eb7d5c5e47f5b8e 100644 (file)
@@ -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