This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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 Wed, Jul 23, 2003 at 02:14:09AM -0300, Alexandre Oliva wrote:
> On Jul 22, 2003, Benjamin Kosnik <bkoz@redhat.com> wrote:
> 
> >> Would a change that made it fail in the current conditions be acceptable
> >> for libstdc++?
> 
> > Yes please.
> 
> How's this?  Ok to install?

+       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 (there's a comment in
GLIBCXX_CONFIGRE in acinclude.m4 explaining why, even though we set CXX
anyhow, odd...)



-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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