summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-10 19:33:11 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-10 20:13:01 +0100
commit39affe19dcbc00d1e5435957fc7c8be65cc853a4 (patch)
treedde6a34e43ca2a849fa9a50437ce50fda9cfb278
parent256ed966d310239cbfa2b09e732fbda55ef75ca5 (diff)
Configure - don't trust $1 to stick around, save its value away
Reviewed-by: Stephen Henson <steve@openssl.org>
-rwxr-xr-xConfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/Configure b/Configure
index 2b621f5ba0..9b14579f5b 100755
--- a/Configure
+++ b/Configure
@@ -1105,9 +1105,11 @@ if ($^O ne "VMS" && !$disabled{makedepend}) {
while ( <PIPE> ) {
# Find the version number and save the major.
m|(?:.*)\b(\d+)\.\d+\.\d+\b(?:.*)|;
+ my $compiler_major = $1;
# We know that GNU C version 3 and up as well as all clang
# versions support dependency generation
- $config{makedepprog} = $ccpcc if /clang/ || (/gcc/ && $1 > 3);
+ $config{makedepprog} = $ccpcc
+ if /clang/ || (/gcc/ && $compiler_major > 3);
$ecc = "clang" if /clang/;
$ecc = "gcc" if /gcc/;
}