Recognise Ultra Sparc and compiler version number.

This commit is contained in:
Ulf Möller 1999-05-04 23:18:24 +00:00
parent ef0a535485
commit 744029c154
3 changed files with 14 additions and 1 deletions

View File

@ -106,6 +106,7 @@ my %table=(
# Solaris setups
"solaris-x86-gcc","gcc:-O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN:-D_REENTRANT:-lsocket -lnsl:BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_sol_asm",
"solaris-sparc-gcc","gcc:-O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN:-D_REENTRANT:-lsocket -lnsl:BN_LLONG RC4_CHAR DES_UNROLL BF_PTR:asm/sparcv8.o::",
"solaris-usparc-gcc","gcc:-O3 -fomit-frame-pointer -mcpu=ultrasparc -Wall -DB_ENDIAN:-D_REENTRANT:-lsocket -lnsl:BN_LLONG RC4_CHAR DES_UNROLL BF_PTR:asm/sparcv8plus-gcc.o::",
"debug-solaris-sparc-gcc","gcc:-O3 -g -mv8 -Wall -DB_ENDIAN:-D_REENTRANT:-lsocket -lnsl:BN_LLONG RC4_CHAR DES_UNROLL BF_PTR:::",
# DO NOT use /xO[34] on sparc with SC3.0. It is broken, and will not pass the tests

11
config
View File

@ -283,6 +283,14 @@ if [ $? = "0" ]; then
CC=gcc
else
CC=cc
if [ "$SYSTEM" = "SunOS" ]
then
case `cc -V 2>&1` in
*4*) CC=sc4;;
*5*) CC=sc5;;
*) CC=cc;;
esac
fi
fi
# read the output of the embedded GuessOS
@ -298,6 +306,7 @@ case "$GUESSOS" in
ppc-*-linux2) OUT="linux-ppc" ;;
*-*-linux2) OUT="linux-elf" ;;
*-*-linux1) OUT="linux-aout" ;;
sun4u-sun-solaris2) OUT="solaris-usparc-$CC" ;;
sun4*-sun-solaris2) OUT="solaris-sparc-$CC" ;;
*86*-sun-solaris2) OUT="solaris-x86-$CC" ;;
*-*-sunos4) OUT="sunos-$CC" ;;
@ -374,6 +383,6 @@ if [ $? = "0" ]; then
$PERL ./Configure $OUT $options
fi
else
echo "This system is not supported. See file INSTALL for details."
echo "This system ($OUT) is not supported. See file INSTALL for details."
fi
)

View File

@ -102,6 +102,9 @@ asm/sparcv8.o: asm/sparcv8.S
asm/sparcv8plus.o: asm/sparcv8plus.S
asm/sparcv8plus-gcc.o: asm/sparcv8plus.S
gcc -E asm/sparcv8plus.S | as -xarch=v8plus /dev/fd/0 -o asm/sparcv8plus-gcc.o
# MIPS 64 bit assember
asm/mips3.o: asm/mips3.s
/usr/bin/as -mips3 -O2 -o asm/mips3.o asm/mips3.s