Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3687 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20716 invoked from network); 1 Aug 2003 20:03:34 -0000 Received: from unknown (HELO milton.schell.de) (217.160.72.35) by pb1.pair.com with SMTP; 1 Aug 2003 20:03:34 -0000 Received: (qmail 12013 invoked by uid 501); 1 Aug 2003 20:03:31 -0000 Received: from unknown (HELO eco.foo) (80.143.24.176) by kdserv.de with SMTP; 1 Aug 2003 20:03:31 -0000 Received: from localhost (localhost [127.0.0.1]) by eco.foo (Postfix) with ESMTP id 5740F36C5C; Fri, 1 Aug 2003 22:03:27 +0200 (CEST) Date: Fri, 1 Aug 2003 22:03:27 +0200 (CEST) X-X-Sender: sas@eco.foo To: Ilia Alshanetsky Cc: Rasmus Lerdorf , internals@lists.php.net In-Reply-To: <200308011431.57345.ilia@prohost.org> Message-ID: References: <200308011431.57345.ilia@prohost.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] libtool -prefer-non-pic for apxs builds? From: sascha@schumann.cx (Sascha Schumann) Not all dls support non-PIC code in DSOs. If you know that your system handles it fine, just pass the right -pic flag to configure. - Sascha On Fri, 1 Aug 2003, Ilia Alshanetsky wrote: > On August 1, 2003 12:22 pm, Rasmus Lerdorf wrote: > > Guys, what do you think about defaulting the build to use -prefer-non-pic > > and having libtool build a non-pic libphp4.so when building the Apache > > DSO? That library isn't linked into other programs anyway, and Apache's > > fork+exec model ensures the pages will be shared regardless of pic. I > > don't really see what we gain by building it pic, and we certainly lose > > quite a bit by doing so. In the order of 15-20% execution time on both > > FreeBSD and Linux with gcc in my tests. > > I think this is a good idea, I've been manually doing the same thing on my > servers by compiling cli & apache separately. Performance wise in my > experience no-pic code is 25-30% faster on Linux. So far it worked perfectly > and I had not experienced any problems. I see no reason why we cannot offer > all PHP users the same performance advantages. > > Ilia > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >