On Wed, Oct 12, 2005 at 03:00:42PM -0400, Albertson, Brett wrote: > I am setting CC. I'll try unsetting it. I've been setting CC > manually since I have Sun cc, gcc 3.4.x, and gcc 4.0.x installed.
Please don't ever set CC unless you're absolutely sure you need to and have read all the top-level makefiles forwards and backwards 100 times and understood them in complete detail. By the time you've done that, you'll understand why setting CC to an actual compiler is never the right thing to do and will surely cause your build to fail. If you're concerned about which compiler is being used by the wrapper, the variables you may want to set include: __GNUC __GNUC64 SPRO_VROOT GNU_ROOT These are also described in the Developer's Reference at http://opensolaris.org/os/community/onnv/devref_toc/devref_4/. You should also read usr/src/tools/cw/Makefile and cw.c, the release notes, and possibly the material at http://opensolaris.org/os/community/tools/gcc/build_instr/. Note that the default opensolaris.sh file we ship, unlike many software packages which blindly search your PATH for 'cc' or 'gcc', uses /opt/SUNWspro/bin/cc explicitly; if you've followed the directions in setting up your build machine, you should not need to change this. -- Keith M Wesolowski "Sir, we're surrounded!" Solaris Kernel Team "Excellent; we can attack in any direction!" _______________________________________________ opensolaris-code mailing list [email protected] https://opensolaris.org:444/mailman/listinfo/opensolaris-code
