This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Wrong configure test for PCH ?
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Carlo Wood <carlo at alinoe dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 30 Sep 2003 08:50:37 -0500
- Subject: Re: Wrong configure test for PCH ?
- Organization: Red Hat / Chicago
- References: <20030930015102.GA4476@alinoe.com>
>AC_DEFUN(GLIBCXX_ENABLE_PCH, [
>...
>
> echo '#include <math.h>' > conftest.h
> if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
> -o conftest.h.gch 1>&5 2>&1 &&
>...
>
>I think there is a '-c' missing there.
No, not with -x c++-header.
%/mnt/hd/bld/gcc/gcc/xgcc -B/mnt/hd/bld/gcc/gcc/ -B/mnt/hd/bld/H-x86-gcc/i686-pc-linux-gnu/bin/ -B/mnt/hd/bld/H-x86-gcc/i686-pc-linux-gnu/lib/ -x c++ config.h -o config.h.gch
/usr/lib/crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
%/mnt/hd/bld/gcc/gcc/xgcc -B/mnt/hd/bld/gcc/gcc/ -B/mnt/hd/bld/H-x86-gcc/i686-pc-linux-gnu/bin/ -B/mnt/hd/bld/H-x86-gcc/i686-pc-linux-gnu/lib/ -x c++-header config.h -o config.h.gch
This configure test is correct.
best,
benjamin