Re: Building PHP, questions
On Thu, 2014-03-13 at 19:15 +0100, Kevin Ingwersen wrote:
> The thing is, that the build itself cant run buildconf or configure,
> so I have to „port“ the libphp5 part to the build system I am using.
I don't understand that requirement. I don't understand what is limiting
you from building PHP first, then the other thing. Just like one does
with most other applications people embed PHP in (i.e. Apache httpd,
Microsoft IIS, ... ok, yeah there the process is the other way round,
but that's a build detail, php-irssi is the same way round
https://svn.php.net/viewvc/archived/embed/trunk/php-irssi/
)
> With minimal, I just mean to have a runnable scripting engine.
> Basicaly, i want to rebuild what you get when using —disable-all —
> enable-static —enable-embed.
so, as said, check the Makefile to see what is referenced in there.
(Hint: start with PHP_GLOBAL_OBJS in there) but you are entering a land
of pain. The file structure can change with each minor release.
Oh and the other generated files ... simply run configure for an out of
tree build ... `cd php-src && mkdir foo && cd foo && ../configure
&&
find -type f`
> How far is TSMRC a dependency of PHP actually? I might actually need
> the thread sefety, so I bet i should compile that in in any case.
If you "might actually need" thread safety you "might actually" compile
it in, if not set the flags accordingly for not having build 90% of
TSRM. (actually I thin you need to set flags to enable it, off is
default ...) If you don't need it what do you want to optimize for? Sure
one can patch things out, but that increases maintenance costs and
increases need for testing.
johannes
Thread (9 messages)