Bug #60109 [Fbk->NoF]: Cross Compiling turns of Dynamic Library support at all
Edit report at https://bugs.php.net/bug.php?id=60109&edit=1
ID: 60109
Updated by: cmb@php.net
Reported by: julian at whisper-net dot de
Summary: Cross Compiling turns of Dynamic Library support at
all
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Dynamic loading
Operating System: Linux
PHP Version: 5.3.8
Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2018-09-20 16:29:41] cmb@php.net
This appears to have been resolved in the meantime, hasn't it?
------------------------------------------------------------------------
[2011-10-21 17:25:22] julian at whisper-net dot de
Description:
------------
Hallo,
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
ac_libs=$LIBS
LIBS="$LIBS -ldl"
if test "$cross_compiling" = yes; then :
found=no
else
[...]
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60109&edit=1
Thread (6 messages)