Click to See Complete Forum and Search --> : Need help installing Mozilla with compiler optimizations.


Giscardo
07-30-2001, 06:23 AM
I have mandrake 8.0 installed with the 2.4.7 kernel (everything else is stock mandrake 8.0). I am trying to install the latest stable version of mozilla from the source code tarball. I unzipped it into /home/giscard/mozilla/mozilla/ , and now I am supposed to type "./configure", and then do "gmake". I learned that i can enable compiler optimizations by using the "--enable-optimize" option when i type in "./configure". I want to use -02 level optimization, so what would be the correct way to do it? I think it's "./configure --enable-optimize=02", but I'm not completely sure that is doing the job cause i don't get any confirmation that it's doing the optimizations.

Malakin
07-30-2001, 07:39 AM
This has detailed information on building Mozilla: http://www.mozilla.org/build/unix.html

ronmon
07-30-2001, 08:09 AM
And take note of the comment that says:

"Wait for an hour or two"

I thought they were kidding. They're not. And my box is no slouch.

PLBlaze
07-30-2001, 08:41 PM
Yup, get the instructions from mozilla's site as idealego suggested or use their mozilla configurator and build .mozconfig file that confgure script will read to build the lizzard :D.Another way to pass flags to your compiler is to set the variables or export them, eg.

CCFLAGS='-mcpu=i686 -march=i686 -O3' \
./configure --your-options-go=here

same would go for c++ compiler just use CCXFLAGS instead of CCFLAGS.Hope this helps.