This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (no) GCC pre-compiled headers on Cygwin

On Jul 23, 2003, Phil Edwards <> 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
Red Hat GCC Developer                 aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist                Professional serial bug killer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]