libtool -prefer-non-pic for apxs builds?
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | libtool -prefer-non-pic for apxs builds? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-3682@lists.php.net to get a copy of this message | ||
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