This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: solaris 32/64 configury
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Cc: Richard Henderson <rth at redhat dot com>, Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>, <gcc-patches at gcc dot gnu dot org>, Tom Tromey <tromey at redhat dot com>
- Date: 26 Apr 2002 14:59:28 -0300
- Subject: Re: solaris 32/64 configury
- Organization: GCC Team, Red Hat
- References: <Pine.BSF.4.44.0204181348310.77741-100000@naos.dbai.tuwien.ac.at>
On Apr 18, 2002, Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:
> .../configure ; make bootstrap
> broken for those (many) hosts not running a 64-bit kernel (which was the
> problem in target/6237).
> And personally I believe that a simple '.../configure ; make bootstrap'
> should nearly always work, even if that means some more advanced features/
> situations need special treatment by the user, so I disagree with Rainer
> here.
Couldn't we solve this similarly to the way IRIX6 handles systems
without 64-bit libraries?
config-ml.in mips*-*-* has:
case " $multidirs " in
*" mabi=64 "*)
# We will not be able to create libraries with -mabi=64 if
# we cannot even link a trivial program. It usually
# indicates the 64bit libraries are missing.
if echo 'main() {}' > conftest.c &&
${CC-gcc} -mabi=64 conftest.c -o conftest; then
:
else
echo Could not link program with -mabi=64, disabling it.
old_multidirs="${multidirs}"
multidirs=""
for x in ${old_multidirs}; do
case "$x" in
*mabi=64* ) : ;;
*) multidirs="${multidirs} ${x}" ;;
esac
done
fi
rm -f conftest.c conftest
;;
esac
I understand the sparc situation is a bit trickier in that linking
would succeed, only to fail to run-time, so we'd have to tell cross
from native compilers, but I thought I'd point this out anyway.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer