mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-30 03:34:39 +00:00
Configure - don't trust $1 to stick around, save its value away
Reviewed-by: Stephen Henson <steve@openssl.org>
This commit is contained in:
parent
256ed966d3
commit
39affe19dc
@ -1105,9 +1105,11 @@ if ($^O ne "VMS" && !$disabled{makedepend}) {
|
|||||||
while ( <PIPE> ) {
|
while ( <PIPE> ) {
|
||||||
# Find the version number and save the major.
|
# Find the version number and save the major.
|
||||||
m|(?:.*)\b(\d+)\.\d+\.\d+\b(?:.*)|;
|
m|(?:.*)\b(\d+)\.\d+\.\d+\b(?:.*)|;
|
||||||
|
my $compiler_major = $1;
|
||||||
# We know that GNU C version 3 and up as well as all clang
|
# We know that GNU C version 3 and up as well as all clang
|
||||||
# versions support dependency generation
|
# 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 = "clang" if /clang/;
|
||||||
$ecc = "gcc" if /gcc/;
|
$ecc = "gcc" if /gcc/;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user