Fix C++ support: set $target{cxx} correctly
authorRichard Levitte <levitte@openssl.org>
Fri, 14 Oct 2016 15:44:25 +0000 (17:44 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 14 Oct 2016 15:52:22 +0000 (17:52 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
Configure

index f451f94f760d80dac461b88bdc89370a37321636..2da2a1a8c3af8cb2ed972763a20207b84af493c8 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -962,6 +962,7 @@ $config{perl} =    ($^O ne "VMS" ? $^X : "perl");
 $config{hashbangperl} =
     $ENV{'HASHBANGPERL'}           || $ENV{'PERL'}     || "/usr/bin/env perl";
 $target{cc} =      $ENV{'CC'}      || $target{cc}      || "cc";
+$target{cxx} =     $ENV{'CXX'}     || $target{cxx}     || "c++";
 $target{ranlib} =  $ENV{'RANLIB'}  || $target{ranlib}  ||
                    (which("$config{cross_compile_prefix}ranlib") ?
                           "\$(CROSS_COMPILE)ranlib" : "true");