Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73118 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72752 invoked from network); 13 Mar 2014 18:53:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2014 18:53:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; 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:60506] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/24-47923-7AEF1235 for ; Thu, 13 Mar 2014 13:53:28 -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 6C5E746494; Thu, 13 Mar 2014 19:54:10 +0100 (CET) To: Kevin Ingwersen Cc: internals In-Reply-To: References: <1394730932.3229.26.camel@guybrush> Content-Type: text/plain; charset="UTF-8" Date: Thu, 13 Mar 2014 19:53:09 +0100 Message-ID: <1394736790.3229.46.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Building PHP, questions From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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