This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: staging headers fix (was Re: libstdc++ problem)
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: staging headers fix (was Re: libstdc++ problem)
- From: Stephen M. Webb <stephen at bregmasoft dot com>
- Date: Mon, 16 Jul 2001 12:52:32 -0400
- Cc: libstdc++ at gcc dot gnu dot org,gcc-bugs at gcc dot gnu dot org,gcc-patches at gcc dot gnu dot org
- Organization: CRYPTOCard Corporation
- References: <200107141315.GAA07484@makita.cygnus.com> <01071523225300.00475@umbriel> <20010716124014.A12497@disaster.jaj.com>
- Reply-To: stephen at bregmasoft dot com
On Mon, 16 Jul 2001, Phil Edwards wrote:
> This patch moves the glibcpp_srcdir
> bits up to GLIBCPP_CONFIGURE, which should be safe because glibcpp_srcdir
> doesn't care whether we're cross-compiling. Now C_INCLUDE_DIR can use
> glibcpp_srcdir.
>
> With this patch, and reverting the workaround from yesterday, all symlinks
> are created with absolute paths even when using a relative-path configure.
> Can someone who was experiencing the original problem please test this?
> (Don't forget to run 'aclocal && autoconf'.)
With this patch (which looks orthogonal to yours, Phil) I get a successful
bootstrap on a clean CVS checkout (HEAD) this morning (uh, about 9:30 EST).
Without the patch, the bootstrap fails with the "bits/std_cstddef.h: No such
file or directory" error. The libstdc++-v3 testsuite runs ok, but I can't seem
to get the gcc testsuite to run so I don't know for certain that it solves all
problems. Certainly, gcj builds ok.
Note that "glibcpp_srcdir" does not need to be defined before the C_INCLUDE_DIR
macro is defined, since it's dereferenced by make and not autoconf.
Index: aclocal.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/aclocal.m4,v
retrieving revision 1.168
diff -c -3 -p -r1.168 aclocal.m4
*** aclocal.m4 2001/07/13 16:47:54 1.168
--- aclocal.m4 2001/07/16 16:52:28
*************** changequote([, ])
*** 1449,1464 ****
case "$enable_cheaders" in
c_shadow)
CSHADOW_FLAGS="-fno-builtin"
! C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
AC_DEFINE(_GLIBCPP_USE_SHADOW_HEADERS)
;;
c_std)
CSHADOW_FLAGS=""
! C_INCLUDE_DIR='${top_srcdir}/include/c_std'
;;
c)
CSHADOW_FLAGS=""
! C_INCLUDE_DIR='${top_srcdir}/include/c'
;;
esac
--- 1449,1464 ----
case "$enable_cheaders" in
c_shadow)
CSHADOW_FLAGS="-fno-builtin"
! C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
AC_DEFINE(_GLIBCPP_USE_SHADOW_HEADERS)
;;
c_std)
CSHADOW_FLAGS=""
! C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
;;
c)
CSHADOW_FLAGS=""
! C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
;;
esac