Using OpenSolaris binutils
Make sure you are using the OpenSolaris toolchain instead of GNU’s, otherwise the ld may crash with objects compiled with cc. Be careful to you $PATH, and check whether /usr/ccs/bin and $SUNWspro/bin is preferred over the generic /usr/bin.
And copy this configuration to your $HOME/.mozconfig, copied from Alex
ac_add_options –enable-optimize="-xO5 -xc99=no_lib"
Building, building, building…
Run the following commands:
#wait it to fail
cd config; gmake
cd ../js; gmake
If it works, we can apply the patch to add static probes:
If you are in luck, you could get libmozjs.so. Now we need to preload it, using run-firefox.sh
# /usr/lib/firefox/firefox-bin -UILocale C -contentLocale c
Unfortunately, there is a core dump when loading the libmozjs.so whatever the dtrace support is added. I doubt that the Firefox in NexentaOS is built by GCC, and it is not binary compatible with the SunStudio, I might have to build the whole Firefox. Ooooh, that is painful, I even does not do that in my Gentoo Linux…
Another bad news is SunStudio could not parse glib‘s head file since it does not support GCC extension, even with c99 enabled. I might ask some guru in mozdev mailing list about how to build Firefox with SunStudio 11.