This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Wrong configure test for PCH ?
- From: Carlo Wood <carlo at alinoe dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 30 Sep 2003 03:51:02 +0200
- Subject: Wrong configure test for PCH ?
In libstdc++-v3/acinclude.m4 I see:
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.
The above would always fail with:
/usr/lib/crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
collect2: ld returned 1 exit status
I didn't file a PR because I am not 100% sure, and as soon
as someone agrees, he might as well just add that -c immedeately.
--
Carlo Wood <carlo@alinoe.com>