http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46334
--- Comment #3 from Jay <jay.krell at cornell dot edu> 2010-11-07 23:10:50 UTC --- jkr...@login [login]:~/src > ssh current10s Last login: Sun Nov 7 23:09:51 2010 from login.bo.opencs Sun Microsystems Inc. SunOS 5.10 Generic January 2005 -bash-4.1$ cd obj -bash-4.1$ mkdir b -bash-4.1$ cd b -bash-4.1$ which gcc no gcc in /home/jkrell/sparc/bin /opt/csw/bin /usr/bin /usr/ccs/bin /opt/csw/bin -bash-4.1$ export CC=/opt/csw/gcc4/bin/gcc -bash-4.1$ $CC -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: ../gcc-4.3.3/configure --prefix=/opt/csw/gcc4 --exec-prefix=/opt/csw/gcc4 --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --with-mpfr=/opt/csw --with-gmp=/opt/csw --enable-java-awt=xlib --enable-libada --enable-libssp --enable-objc-gc --enable-threads=posix --enable-stage1-languages=c --enable-languages=ada,c,c++,fortran,java,objc Thread model: posix gcc version 4.3.3 (GCC) -bash-4.1$ export CXX=CC -bash-4.1$ $CXX -V CC: Sun C++ 5.9 SunOS_sparc 2007/05/03 -bash-4.1$ which ar /usr/ccs/bin/ar -bash-4.1$ which gmake /opt/csw/bin/gmake -bash-4.1$ which make /usr/ccs/bin/make -bash-4.1$ export MAKE=gmake -bash-4.1$ uname -a SunOS current10s 5.10 Generic_142909-17 sun4v sparc SUNW,SPARC-Enterprise-T5220 /home/jkrell/src/gcc-trunk/configure -prefix=$HOME/test2 -enable-build-with-cxx && $MAKE ..... gmake[3]: Entering directory `/home/jkrell/obj/b/libcpp' source='/home/jkrell/src/gcc-trunk/libcpp/charset.c' object='charset.o' libtool=no DEPDIR=.deps depmode=dashXmstdout /bin/bash /home/jkrell/src/gcc-trunk/libcpp/../depcomp CC -I/home/jkrell/src/gcc-trunk/libcpp -I. -I/home/jkrell/src/gcc-trunk/libcpp/../include -I./../intl -I/home/jkrell/src/gcc-trunk/libcpp/include -g -W -Wall -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -I/home/jkrell/src/gcc-trunk/libcpp -I. -I/home/jkrell/src/gcc-trunk/libcpp/../include -I./../intl -I/home/jkrell/src/gcc-trunk/libcpp/include -c /home/jkrell/src/gcc-trunk/libcpp/charset.c CC: Warning: Option -W passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -Wwrite-strings passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -Wmissing-format-attribute passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -pedantic passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -Wno-long-long passed to ld, if ld is invoked, ignored otherwise attached toplevel config.log and libcpp/config.log excerpt: configure:4440: checking whether /opt/csw/gcc4/bin/gcc supports -pedantic -Wno-long-long WARN_PEDANTIC='-pedantic -Wno-long-long' so you can see, CC and CXX are configured the same by autoconf, even though they might not be related.