Print service provided by iDogiCat: http://www.idogicat.com/
home logo





Home > IT > System Administration > Build Firefox

Build Firefox

iDog

Windows XP users: please download directly:




Firefox doesn't work on my FC4 installation due to some lib issues. So I'd like to customize and build a binary targeted to my PC.

  • download the tarball of the source code, and expand it.
  • write a config file: ~/work/.mozconfig
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/fb-opt-static
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-static --enable-shared
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft
  • export it:
export MOZCONFIG=~/work/.mozconfig
  • build it! Note that you should not run the 'configure' since it may confuse the gmake.
gmake -f client.mk build
  • build a tarball
gmake -C fb-opt-static/browser/installer
  • install it
mv fb-opt-static/dist/firefox-1.5.en-US.linux-i686.tar.gz /opt
cd /opt
gunzip firefox-1.5.en-US.linux-i686.tar.gz
tar xvf firefox-1.5.en-US.linux-i686.tar