[Embedded] Integrate php to existing Apache
I'm trying to build sh3-linux embedded system. I have to build apache & integrate php. But I got some stuck:
1. If I cross-compile apache & cross-compile php:
apache was successful & php fail
Reason: build php with apache must use "httpd" binary-file to implement shared library (libphp5.so), but the Linux 8086 PC can not execute this file, because this file was cross-compiled
2. If I compile apache (using PC gcc) & cross-compile php (using sh3-linux-gcc), both success but the shared-library file (libphp5.so) is a 8086 shared-library file, it can be executed by the embedded-Linux.
Reason: the "httpd" binary is a 8086 base-system file, it can be executed by the PC, but it also build the wrong .so file!
Anyone have an idea to solve this issue? I think there're some parameter when build. I have no acknownledgement about this.
Where do I find an instruction?
*Note that I've build successfully both on my Linux-PC