Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73113 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60153 invoked from network); 13 Mar 2014 17:15:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2014 17:15:52 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:60382] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/C1-47923-6C7E1235 for ; Thu, 13 Mar 2014 12:15:51 -0500 Received: from [192.168.2.20] (ppp-188-174-35-223.dynamic.mnet-online.de [188.174.35.223]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id E7EC946494; Thu, 13 Mar 2014 18:16:32 +0100 (CET) To: Kevin Ingwersen Cc: internals In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 13 Mar 2014 18:15:32 +0100 Message-ID: <1394730932.3229.26.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Building PHP, questions From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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