mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Convert gcc version detection (for solaris-usparc-gcc) into a form
better suited for finding what went wrong in case that some compiler versions create an output we can't parse.
This commit is contained in:
parent
767f68cc80
commit
15a99e3d9d
5
config
5
config
@ -333,7 +333,10 @@ esac
|
||||
# gcc < 2.8 does not support -mcpu=ultrasparc
|
||||
if [ "$OUT" = solaris-usparc-gcc ]
|
||||
then
|
||||
if [ `echo $GCCVER | sed 's/.*version //;s/\.//;s/\..*//'` -lt 28 ]
|
||||
GCCVERMAJOR="`echo $GCCVER | sed 's/.*version \([^.]*\).*/\1/`"
|
||||
GCCVERMINOR="`echo $GCCVER | sed 's/.*version[^.]*\.\([^.]*\).*/\1/`"
|
||||
echo "gcc version $GCCVERMAJOR.$GCCVERMINOR.x"
|
||||
if [ $GCCVERMAJOR$GCCVERMINOR -lt 28 ]
|
||||
then
|
||||
OUT=solaris-usparc-oldgcc
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user