Jump to content

Compiling firefox from source


Recommended Posts

Hi.

 

Are there any good guides to installing firefox from source?

 

I have recently learnt how to recompile the kernel and I figured as I use firefox every single day it was worth compiling.

 

I have tried to follow the guide on the firefox website but it failed.

 

Any pointers would be great.

 

Cheers

 

 

 

 

Moved from 'Software' to 'Terminal Shell Commands, Kernel and Programming' - Artificial Intelligence

Link to comment
Share on other sites

I have built firefox in the past using these instructions:

 

# Extract: tar xvjf firefox-1.0-source.tar.bz2

# Change your current working directory to the new one: cd mozilla/

# There you should create a file .mozconfig

# Compile the sourcecode: gmake -f client.mk build

(or gmake -f client.mk build > filename.txt 2>&1 || exit to write compiler screen output to a file)

# Once the build has finished, you can find the finished product in ~/mozilla/dist/bin.

 

A typical .mozconfig looks like this:

 

. $topsrcdir/browser/config/mozconfig

ac_add_options --disable-tests

ac_add_options --disable-debug

ac_add_options --enable-strip

ac_add_options --enable-strip-libs

ac_add_options --enable-xft

ac_add_options --disable-freetype2

ac_add_options --enable-default-toolkit=gtk2

ac_add_options --enable-static

ac_add_options --disable-shared

ac_add_options --enable-optimize="-O2 -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow"

 

My experience has always been that my builds are slower than the executable version downloaded directly from the firefox website. I played around with compiler optimization flags, but never could achieve the speeds of the executable version as measured by a benchmark called the Scragz test (search the MozillaZine forum).

 

As an aside, the firefox included with Mandrake as an rpm was always slower than the executable from firefox as well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...