V3 and cross-compiler (AIX 4.3 64-bit mode)
David Edelsohn
dje@watson.ibm.com
Sun Jun 17 19:03:00 GMT 2001
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
More information about the Libstdc++
mailing list