Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7354 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47950 invoked by uid 1010); 27 Jan 2004 16:41:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47917 invoked from network); 27 Jan 2004 16:41:32 -0000 Received: from unknown (HELO mrout2.yahoo.com) (216.145.54.172) by pb1.pair.com with SMTP; 27 Jan 2004 16:41:32 -0000 Received: from bourbon.corp.yahoo.com (bourbon.corp.yahoo.com [216.145.53.135]) by mrout2.yahoo.com (8.12.10/8.12.10/y.out) with ESMTP id i0RGeBQS063757; Tue, 27 Jan 2004 08:40:11 -0800 (PST) Received: (from andrei@localhost) by bourbon.corp.yahoo.com (8.12.9/8.11.1) id i0RGeBrg032790; Tue, 27 Jan 2004 08:40:11 -0800 (PST) (envelope-from andrei@gravitonic.com) X-Authentication-Warning: bourbon.corp.yahoo.com: andrei set sender to andrei@gravitonic.com using -f Date: Tue, 27 Jan 2004 08:40:11 -0800 To: Jani Taskinen Cc: "Brian J. France" , internals@lists.php.net Message-ID: <20040127164011.GE32706@gravitonic.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] Compiling 2 SAPIs From: andrei@gravitonic.com (Andrei Zmievski) On Tue, 27 Jan 2004, Jani Taskinen wrote: > Here's what I came up with: > > http://www.php.net/~jani/patches/multi_sapi_build.patch > > With the patch applied, I'm now able to build at least > apache, cli, cgi and embed SAPIs on one run. > > # ./configure --disable-all --with-apxs --enable-embed > > (CLI and CGI are build by default..) > > I build them using static 'core' lib as I dislike the > idea of having to install and maintain several libs. :) > > But if someone insists, it's possible to build one shared > lib too..I actually tested with that first. :) Does your patch just build multiple SAPIs as separate shared libs or does it make one shared lib that has multiple SAPIs in it? The latter is what I want. The best (ideal) result would be to have one libphp[45].so that contains the core. The SAPIs should link against it, so we'd have libphpembed.so, libphpapache.so, etc. Can this be done? - Andrei