Here is location of source for Firefox 5.0b2
ftp://ftp.mozilla.org/pub/mozilla.org/f ... b2/source/
This is how to compile Firefox for your cpu, mainly for fun of course, but I got about an 8% speed improvement on the Peacekeeper browser benchmark. http://clients.futuremark.com/peacekeeper/index.action Please be careful in distributing your optimized Firefox pet so that it is very clear what cpu it is for. I have been doing this repeatedly on Lucid 5.2.5 so if it does not work I have probably left something out--please ask. IMHO, the more people who can compile the better for Puppy.
1. Install the lupu_devx_525.sfs (contains files needed to compile)
http://distro.ibiblio.org/pub/linux/dis ... vx_525.sfs
Put it in /mnt/home, then Menu -> System -> Bootmanager -> Load SFS, move the devx to the right pane, close, and reboot
2. Download Firefox source code
http://ftp.mozilla.org/pub/mozilla.org/ ... .1/source/
download -> firefox-4.0.1.source.tar.bz2
2b. Also download and install yasm, which is necessary for Firefox to support webm video.
http://packages.ubuntu.com/natty/i386/yasm/download
Webm test files -> http://forums.mozillazine.org/viewtopic ... &t=1919639
3. Unpack the source code:
Code: Select all
# tar -xjf firefox-4.0.1.source.tar.bz2
4. Open the mozilla-2.0 folder and open a terminal in that folder
(right-click in the folder background and choose Window -> Terminal Here)
5. Figure out what cpu you want to compile for
http://gcc.gnu.org/onlinedocs/gcc-3.4.6 ... tions.html
(for the most speed pick the highest category your cpu fits in, for instance my Phenom could be i686 or K8, but its highest is amdfam10)
6. Enter:
Code: Select all
# export CFLAGS="-march=amdfam10 -O3“
# export CXXFLAGS="-march=amdfam10 -O3“
or another way (suggested by Dingo below)
Code: Select all
#export CXXFLAGS="-march=native -O3“
#export CFLAGS="-march=native -O3“
7. Enter: .
Code: Select all
For Firefox
# ./configure --enable-application=browser --prefix=/usr
For Seamonkey
# ./configure --enable-application=suite --prefix=/usr
Code: Select all
# make
/mnt/sdb1/Firefox-4.0.1-lucid525-amdfam10
10. Still in the same terminal, Enter:
Code: Select all
# make install DESTDIR=/mnt/sdb1/Firefox-4.0.1-lucid525-amdfam10
Code: Select all
# make install DESTDIR=/Firefox-4.0.1-lucid525-amdfam10
Code: Select all
# dir2pet Firefox-4.0.1-lucid525-amdfam10
This is just an outline. There are several thousand Puppians who know more than I do about this, so I hope they will offer suggestions to refine the process. For instance I am not sure that both CXXFLAGS and CFLAGS are needed...
Traditionally firefox was regarded as very difficult to compile--not so anymore. Another urban myth was that the Mozilla code could not be optimized at even -O2--not so anymore--at least the firefox code can handle -O3..