com php-src: Check for dlsym as well: configure.ac
| From: | Nikita Popov | Date: | Thu, 20 Jun 2019 14:23:04 +0000 |
| Subject: | com php-src: Check for dlsym as well: configure.ac | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106951@lists.php.net to get a copy of this message | ||
Commit: 6165c23475d5020cda3794cb684693a7fab9918d
Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 20 Jun 2019 15:48:48 +0200
Parents: 26ac6cb6be807d9e654b4a0c9b970908e210f269
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6165c23475d5020cda3794cb684693a7fab9918d
Log:
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.
Changed paths:
M configure.ac
Diff:
diff --git a/configure.ac b/configure.ac
index 8517441..450de11 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