Re: Building PHP, questions

From: Date: Thu, 13 Mar 2014 17:15:32 +0000
Subject: Re: Building PHP, questions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-73113@lists.php.net to get a copy of this message
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

« previous php.internals (#73113) next »