This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: V3 and cross-compiler (AIX 4.3 64-bit mode)
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>, bkoz at redhat dot com
- Subject: Re: V3 and cross-compiler (AIX 4.3 64-bit mode)
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Sun, 17 Jun 2001 22:02:31 -0400
- cc: pedwards at disaster dot jaj dot com, libstdc++ at gcc dot gnu dot org, Alexandre Oliva <aoliva at redhat dot com>
The following patch invokes mknumeric_limits with the
cross-compiling flag set if it exited with a failure. Would something
like this be acceptable an a way to have V3 configure try a little harder
to finish configuring in the face of gen-num-limits failing to run?
Thanks, David
* configure.in (mknumeric_limits): Try using cross-compiler mode
if initial attempt failed.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/configure.in,v
retrieving revision 1.54.2.8
diff -c -p -r1.54.2.8 configure.in
*** configure.in 2001/06/14 08:47:35 1.54.2.8
--- configure.in 2001/06/18 01:53:04
*************** $srcdir/mkc++config $blddir $srcdir
*** 307,315 ****
if test ! -f stamp-limits; then
$srcdir/mknumeric_limits $blddir $srcdir $xcompiling
if test ! -f include/bits/std_limits.h; then
! echo "mknumeric_limits failed to execute properly: exiting"
! exit 1
! else
touch stamp-limits
fi
fi
--- 307,321 ----
if test ! -f stamp-limits; then
$srcdir/mknumeric_limits $blddir $srcdir $xcompiling
if test ! -f include/bits/std_limits.h; then
! # Maybe we can link executables but not run them, so try explicit
! # cross-compile if xcompiling not already set.
! if test $xcompiling -ne 1; then
! $srcdir/mknumeric_limits $blddir $srcdir 1
! fi
! if test ! -f include/bits/std_limits.h; then
! echo "mknumeric_limits failed to execute properly: exiting"
! exit 1
! fi
touch stamp-limits
fi
fi