I compiled php 4.3 with apache2 and found out that the binary (libphp4.so) was almost 7.5MB. Then figured out that I had compiled in a few modules(gd,openssl,domxml,bz2,iconv,curl) so I recompiled PHP to make all the modules shared and still the libphp4.so is almost 6.5MB. I dont understand why is the binary so fat even with all the modules shared. I compiled on a Redhat 8.0 system.
Here is my configure command ./configure \ --with-apxs2=/usr/sbin/apxs \ --host=i686-pc-linux-gnu \ --build=i686-pc-linux-gnu \ --target=i686-redhat-linux-gnu \ --prefix=/usr \ --with-layout=GNU \ --with-config-file-path=/etc \ --enable-force-cgi-redirect \ --disable-debug \ --enable-pic \ --disable-rpath \ --enable-inline-optimization \ --with-bz2=shared \ --with-db3=shared \ --with-curl=shared \ --with-dom=shared,/usr \ --with-exec-dir=/usr/bin \ --with-freetype-dir=/usr \ --with-png-dir=/usr \ --with-gd=shared \ --enable-gd-native-ttf \ --with-ttf \ --with-gdbm \ --with-gettext \ --with-iconv=shared \ --with-jpeg-dir=/usr \ --with-openssl=shared \ --with-png \ --with-regex=system \ --with-xml=shared \ --with-expat-dir=/usr \ --with-zlib=shared \ --enable-bcmath \ --enable-exif \ --enable-ftp \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-discard-path \ --enable-track-vars \ --enable-trans-sid \ --enable-wddx \ --with-pear=/usr/share/pear \ --with-imap=shared \ --with-imap-ssl \ --with-kerberos=/usr/kerberos \ --with-ldap=shared \ --with-mysql=shared,/usr \ --with-mssql=shared,/usr \ --with-mhash=shared,/usr \ --with-mcrypt=shared,/usr/local \ --enable-ucd-snmp-hack \ --enable-memory-limit \ --enable-bcmath \ --enable-shmop \ --enable-versioning \ --enable-calendar \ --enable-dbx \ --enable-dio \ --enable-mcal --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003 -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php