Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3682 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26472 invoked from network); 1 Aug 2003 16:22:15 -0000 Received: from unknown (HELO www.lerdorf.com) (66.93.78.119) by pb1.pair.com with SMTP; 1 Aug 2003 16:22:15 -0000 Received: from DELL.lerdorf.com ([10.0.1.2]) by www.lerdorf.com (8.12.9/8.12.9/Debian-5) with ESMTP id h71GMCDE028567; Fri, 1 Aug 2003 09:22:12 -0700 Date: Fri, 1 Aug 2003 09:22:25 -0700 (Pacific Standard Time) To: internals@lists.php.net cc: sascha@schumann.cx Message-ID: X-X-Sender: rasmus@lerdorf.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: libtool -prefer-non-pic for apxs builds? From: rasmus@lerdorf.com (Rasmus Lerdorf) 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. -Rasmus