Tuesday, February 14, 2006

Firefox - compiling from source


# wget ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.1/linux-i686/en-US/firefox-1.5.0.1.tar.gz
# tar xzvvf firefox-1.5.0.1.tar.gz
# cd mozilla
# vi .mozconfig

---8<---
# mozilla/.mozconfig
# Firefox 1.5.0.1 compile options

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build
ac_add_options --enable-official-branding
#ac_add_options --disable-official-branding

#ac_add_options --enable-default-toolkit=qt
#ac_add_options --with-qtdir=/usr/share/qt3
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft --disable-freetype2

ac_add_options --enable-static --disable-shared
ac_add_options '--enable-optimize=-Os -freorder-blocks -fno-reorder-functions -gstabs+'
#ac_add_options --enable-optimize="-O6 -march=k8"
#ac_add_options --enable-optimize="-O2 -msse -mmmx -m3dnow -mfpmath=sse"
#ac_add_options '--enable-optimize=-pipe\ -w\ -O2\ -DDEBIAN\ -fno-strict-aliasing'

ac_add_options --enable-strip
ac_add_options --disable-debug
ac_add_options --disable-logging
ac_add_options --disable-tests
ac_add_options --disable-pedantic
ac_add_options --disable-long-long-warning

ac_add_options --enable-svg
ac_add_options --enable-svg-renderer-cairo
ac_add_options --enable-canvas
ac_add_options --enable-mathml
ac_add_options --enable-postscript
ac_add_options --enable-crypto

ac_add_options --enable-single-profile --disable-profilesharing
#ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,auth
ac_add_options --enable-xinerama
ac_add_options --enable-pango
ac_add_options --enable-gnomevfs
ac_add_options --enable-gnomeui

ac_add_options --disable-installer
ac_add_options --disable-updater
ac_add_options --disable-xprint
ac_add_options --disable-ldap
ac_add_options --disable-accessibility
ac_add_options --disable-oji
ac_add_options --disable-jsd

ac_add_options --with-default-mozilla-five-home=/usr/lib/mozilla-firefox
ac_add_options --with-user-appdir=.mozilla
ac_add_options --with-system-zlib=/usr
ac_add_options --with-system-jpeg=/usr
ac_add_options --with-system-png=/usr
ac_add_options --with-system-mng=/usr
ac_add_options --without-system-nspr
ac_add_options --with-pthreads
--->8---

# make -f client.mk build

* takes 30-60 min on AMD64 3000+ with 1G RAM

# make -C firefox-build/browser/installer
# sudo mv firefox-build/dist/firefox-1.5.0.1.en-US.linux-i686.tar.gz /opt
# sudo tar xzvf firefox-1.5.0.1.en-US.linux-i686.tar.gz
# cd firefox
# sudo ./firefox

***

- for a static build:

# vi browser/app/Makefile
:94
$(MOZ_XFT_LIBS)

No comments: