aboutsummaryrefslogtreecommitdiff
path: root/lang/php5/patches/950-Fix-dl-cross-compiling-issue.patch
blob: 216a5180a3e99b019a5dddb0a94ddd924cae4d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/configure.in
+++ b/configure.in
@@ -453,7 +453,10 @@ PHP_CHECK_FUNC(gethostname, nsl)
 PHP_CHECK_FUNC(gethostbyaddr, nsl)
 PHP_CHECK_FUNC(yp_get_default_domain, nsl)
 
-PHP_CHECK_FUNC(dlopen, dl)
+PHP_ADD_LIBRARY(dl)
+PHP_DEF_HAVE(dlopen)
+PHP_DEF_HAVE(libdl)
+ac_cv_func_dlopen=yes
 if test "$ac_cv_func_dlopen" = "yes"; then
   AC_DEFINE(HAVE_LIBDL, 1, [ ])
 fi