Re: Building PHP, questions
On Thu, 2014-03-13 at 17:52 +0100, Kevin Ingwersen wrote:
> Hey there.
>
> For a project I am working on,I want to implement a minimal version of
> PHP - really, just it and a very tiny subset of modules. Its for
Define minimal.
cd Zend && ./buildconf && configure && make
combined with one or two trivial patches to get rid of TSRM dependencies
gives you a standalone library containing only the engine. The result of
configure --disable-all in the php source is the minimum useful thing.
> embeding PHP at the end. I can tell that I need to compile realyl
> everything from main and TSRM. But what other fiels do I need to
> compile - AND generate? I know I have to generate config.h - but what
> does it depend on?
The ones referenced from the current build system's Makefile. I doubt
anybody keeps an extra list. Mind that i.e. TSRM becomes quite small in
non-tsrm mode.
> I am not going to be able to use Autotools - because I am porting it
> into a build system I am contributing to.
Why? You can always build PHP as a library using --enable-embed (add
"=static" if you want it to be a static library) and use that from your
other project, yes this adds a dependency but avoids lots of build
issues.
johannes
Thread (9 messages)