Re: QNX build
| From: | Richard | Date: | Wed, 06 Feb 2008 10:02:27 +0000 |
| Subject: | Re: QNX build | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268763@lists.php.net to get a copy of this message | ||
Jochem Maas used his keyboard to write :
Richard schreef:Removing the debugging symbols and enabling the extensions I need gives me a binary of 2.7 MB which is already better.Jochem Maas was thinking very hard :Richard schreef:It is still one binary of 8.6 MB and no shared libs.Jochem Maas wrote :didn't work in what way?Richard schreef:I tried that but it didn't work.Hi, After installing PHP on a Windows machine I see a very small PHP-executable and several extension dll's that can be loaded. When I build PHP on a QNX machine I get one huge executable of 8.6 MB. Is it possible to build something similar to the Windows version?yes, by specifying to ./configure that it should build shared extensions or those extensions that allow it. so the relevant ./configure options will look something like:--enable-foo=shared,/path/to/libsWhen I use the option --disable-all the binary is about 5 MB. Which is much too large. An option could be not to use php but perl. This binary is 1 MB. But I think the best option is a web server with fast cgi.cool :-)what's your configure line look like right now? PS - I'd never heard of QNX - just looked it up - interested to know what your doing with it and php.I have an embedded system with an sqlite database. I want a web interface that shows database info and maybe system info.ok - seems like you will only be needing a small subset of the available extensions. have you tried using --disable-all and then only enabling the extensions you really need, It may get the binary size down to a usable level.PPS - Is a single large binary any worse than a smaller binary that loads in a bunch of extensions (assuming the same extensions in each case), won't the memory footprint be near enough the same for each?It seems that my system has a problem with loading large binaries. It would be nice if I could decide in the ini file which extensions will be loaded (I am not sure which extensions I need). I use the shttpd web server. This one does not support fast cgi. Loading a large cgi interpreter each time slows down my system.
lighthttpd?It took me a while to port lighttpd + libs but it is just what I am looking for. Thanks a lot.
Regards, Richard