This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: (no) GCC pre-compiled headers on Cygwin
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: 23 Jul 2003 03:11:16 -0300
- Subject: Re: (no) GCC pre-compiled headers on Cygwin
- Organization: GCC Team, Red Hat
- References: <20030722102833.60471912.bkoz@redhat.com><or4r1dx1su.fsf@free.redhat.lsd.ic.unicamp.br><20030723060238.GA14938@disaster.jaj.com>
On Jul 23, 2003, Phil Edwards <phil@jaj.com> wrote:
> + if ${CXX-g++} $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
> + -o conftest.h.gch 1>&5 2>&1 &&
> + echo '#error "pch failed"' > conftest.h &&
> + echo '#include "conftest.h"' > conftest.C &&
> + ${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.C 1>&5 2>&1 ; then
> Please use $glibcxx_CXX rather than $CXX
$ac_compile would use $CXX. Pretty much everything else does. The
reason I introduced glibcxx_CXX is *only* because AC_CHECK_PROGS
caches using the variable name, and we don't want libstdc++ to cache
it as the value of CXX, but rather as the specific value of CXX used
by libstdc++. Note that CXX is set to glibcxx_CXX right after
AC_CHECK_PROGS, and everybody else should be using only CXX.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer