Re: Howto build statically linked PHP CGI (without shared libs)
| From: | Nuno Lopes | Date: | Wed, 10 Sep 2008 15:48:30 +0000 |
| Subject: | Re: Howto build statically linked PHP CGI (without shared libs) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40440@lists.php.net to get a copy of this message | ||
> statifier'd version of the CGI works fine.. but we're looking a better
> method to directly built the CGI.
you can always use llvm and compile all libraries you need to bitcode
and then link them with PHP. that way will enable more optimizations
and will also reduce the binary size, since llvm will remove the
library functions that PHP doesn't use. (details on how to do this are
too much off-topic for this list)
Still, upgrading a library only represents a problem if its ABI
changes (usually the filename changes as well). If not, there isn't
any trouble.
Nuno