Build Firefox 2 in Linux 
iDog
2006.11.20
Windows XP users: please download directly:
Firefox doesn't work on my FC4 Linux 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 to, say, ~/work/install/mozilla
 -  write a config file: ~/work/install/.mozconfig
 
. $topsrcdir/browser/config/mozconfig
# Options for client.mk.
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-dir
# Options for 'configure' (same as command-line options).
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft
ac_add_options --disable-static --enable-shared
ac_add_options --disable-tests
ac_add_options --enable-crypto
export MOZCONFIG=~/work/install/.mozconfig
-  change to the top dir of source code:
 
cd ~/work/install/mozilla
-  build it! Note that you should not run the 'configure' since it may confuse the gmake.
 
make -f client.mk build
-  build a tarball. Note that there is a bug in the Makefile. So fix it first:
-  change dir to ~/work/install/mozilla/obj-dir/browser/installer
 -  open Makefile with text editor, comment out line 60-70, and save file (I believe that there is a bug here, so to make things simple, just comment them out!)
 -  type 'make' to make the tar ball
 
 -  install it
 
mv ~/work/install/mozilla/obj-dir/dist/firefox-2.0.en-US.linux-i686.tar.gz /opt
cd /opt
tar xvfz firefox-2.0.en-US.linux-i686.tar.gz