http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46334
Summary: C++ compiler gets g++ switch even if it isn't g++ Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassig...@gcc.gnu.org ReportedBy: jay.kr...@cornell.edu if C compiler is gcc and C++ compiler is not g++, C++ compiler gets g++ flags (maybe redirect to autoconf?) export CXX=/usr/bin/CC gcc-4.5.1/configure -enable-build-with-cxx /usr/bin/CC -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.5/gcc -I../../gcc-4.5/gcc/. -I../../gcc-4.5/gcc/../include -I../../gcc-4.5/gcc/../libcpp/include -I/home/jkrell/dev2/cm3/m3-sys/m3cc/SOLsun/./gmp -I/home/jkrell/dev2/cm3/m3-sys/m3cc/gcc-4.5/gmp -I../../gcc-4.5/gcc/../libdecnumber -I../../gcc-4.5/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/include/libelf ../../gcc-4.5/gcc/df-core.c -o df-core.o 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 CC: Warning: Option -Wno-variadic-macros passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -Wno-overlength-strings passed to ld, if ld is invoked, ignored otherwise /usr/bin/CC -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros seems a bit off. I'm trying now with CXX=CC, CC=cc. The autoconf log is looking better. - Jay