|
|
Mozilla on Solaris FAQ
- Patches needed for Solaris 2.6
- What compiler should I use?
- How do I switch between two compilers?
-
Patches needed for Solaris 2.6
- What compiler should I use?
There are 4 compilers that are known to work: gcc-2.7.2.3, egcs, WS4.2, WS5.0.
They all have trade-offs and there is no clear leader right now. Tinderbox is currently running a gcc-2.7.2.3 build, some Solaris contributors are using the Workshop 4.2 compiler with some success.
| Compiler |
Good |
Bad |
Notes |
| gcc 2.7.2.3 |
- Classic compiler, lots of support on many platforms.
- Purify support
|
Weak C++ support, defines LCD for tinderbox right now. |
More-recent versions not rock solid yet. |
| egcs |
- Benefits from linux coverage.
|
- No purify
- Can't step in debugger
|
|
| WS4.2 |
Purify support |
$$ |
Picky compiler, some bugs, mostly worked-around with autoconf. |
| WS5.0 |
- Purify support
- Built-in preformance tools
|
$$ |
Some 4.2 bugs fixed, some new ones. |
- How do I switch between two compilers?
If both a gnu compiler and non-gnu compiler are in your path,
the gnu compiler wins the config test. To override this, or to pick from among
several compilers you have in your path, set the environment variables
CC and CXX to point to the compiler you want to use:
# Example to override gcc install with WS5.0
setenv CC /usr/local/workshop/SUNWspro/bin/cc
setenv CXX /usr/local/workshop/SUNWspro/bin/CC
./configure
Chris McAfee
Last modified: Tue Nov 23 16:32:19 PST 1999
|