diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/src/config | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config index 132fb7a0ce..ece3248393 100644 --- a/src/lib/libssl/src/config +++ b/src/lib/libssl/src/config | |||
@@ -390,11 +390,13 @@ exit 0 | |||
390 | 390 | ||
391 | # figure out if gcc is available and if so we use it otherwise | 391 | # figure out if gcc is available and if so we use it otherwise |
392 | # we fallback to whatever cc does on the system | 392 | # we fallback to whatever cc does on the system |
393 | GCCVER=`(gcc --version) 2>/dev/null` | 393 | GCCVER=`(gcc --version) 2>/dev/null | head -1` |
394 | if [ "$GCCVER" != "" ]; then | 394 | if [ "$GCCVER" != "" ]; then |
395 | CC=gcc | 395 | CC=gcc |
396 | # then strip off whatever prefix Cygnus prepends the number with... | 396 | # then strip off whatever prefix Cygnus as well as GCC 3.1 prepends |
397 | GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'` | 397 | # the number with... Hopefully, this will work for any future prefixes |
398 | # as well. | ||
399 | GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z ()]*\-//'` | ||
398 | # peak single digit before and after first dot, e.g. 2.95.1 gives 29 | 400 | # peak single digit before and after first dot, e.g. 2.95.1 gives 29 |
399 | GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` | 401 | GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` |
400 | else | 402 | else |