This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Patch to use CXX_libstdcxx breaks V3
- To: gcc-bugs at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com, Alexandre Oliva <aoliva at cygnus dot com>
- Subject: Patch to use CXX_libstdcxx breaks V3
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 04 Nov 2000 18:14:09 -0800
- Organization: CodeSourcery, LLC
Alexandre --
2000-11-04 Alexandre Oliva <aoliva@redhat.com>
* acinclude.m4 (CXX): Prevent it from being cached.
* aclocal.m4, configure, */Makefile.in: Rebuilt.
This patch will break the V3 build on any platform without g++ already
installed, as far as I can see.
(It certainly breaks it on a virgin Solaris 2.8 system).
The problem is that AC_CHECK_PROGS doesn't deal well with absolute
paths. The top-level make passes down CXX set to:
`/foo/bar/objdir/gcc/g++ ...'
AC_CHECK_PROGS used to accept this because that variable had the same
name as the variable being set. But, now, it iterates through the
PATH, failing to find the long name in any directory on the PATH, and
falls back to (on Solaris) Sun CC. Chaos results.
I think that adding:
CXX_libstdcxx=$CXX
right before AC_CHECK_PROGS should fix it; I'm going to try that.
Comments from autoconf experts welcome!
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com