(no) GCC pre-compiled headers on Cygwin

Alexandre Oliva aoliva@redhat.com
Wed Jul 23 12:17:00 GMT 2003


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



More information about the Gcc mailing list