go to bug id or search bugs for
while trying to cross compile PHP via a bitbake recipe (openembedded.org), I discovered, that somehow the build system of PHP turns of the Dynamic Loading support if it detects that PHP is being cross compiled.
See configure-Script of PHP:
if test "$found" = "yes"; then
if test "$cross_compiling" = yes; then :
As you can see, the configure script sets "found" to no for libdl/dlopen-tests, if cross_compiling is enabled.
In my opinion (and according to my tests) there is no reason to do this, as overriding this manually by setting -DHAVE_LIBDL as CFLAGS and adding -ldl to LDFLAGS leads to a PHP build that is Dynamic-Loading-enabled and works without problems on the target machine.
Add a Patch
Add a Pull Request