Commit a583fc45 authored by Richard Levitte's avatar Richard Levitte
Browse files

Don't check for gcc or clang on VMS



This check is meaningless on VMS and only produce an error because the
underlying shell (DCL) doesn't understand sh syntax such as '2>&1'.

Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
parent 7c55e22c
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -1102,9 +1102,10 @@ if (!$no_asm) {
    }
}

# Is the compiler gcc or clang?  $ecc is used below to see if error-checking
# can be turned on.
my $ecc = $target{cc};
if ($^O ne "VMS") {
    # Is the compiler gcc or clang?  $ecc is used below to see if
    # error-checking can be turned on.
    my $ccpcc = "$config{cross_compile_prefix}$target{cc}";
    $config{makedepprog} = 'makedepend';
    open(PIPE, "$ccpcc --version 2>&1 | head -2 |");
@@ -1114,6 +1115,7 @@ while ( <PIPE> ) {
        $ecc = "gcc" if /gcc/;
    }
    close(PIPE);
}

$config{depflags} =~ s/^\s*//;