Preserve the C compiler.
authorBen Laurie <ben@links.org>
Wed, 27 Feb 2013 22:20:37 +0000 (22:20 +0000)
committerBen Laurie <ben@links.org>
Mon, 4 Mar 2013 14:31:18 +0000 (14:31 +0000)
util/mk1mf.pl

index 1771e5a..2ef5c77 100755 (executable)
@@ -44,6 +44,7 @@ my %mf_import = (
        INSTALLTOP     => \$INSTALLTOP,
        OPENSSLDIR     => \$OPENSSLDIR,
        PLATFORM       => \$mf_platform,
+       CC             => \$mf_cc,
        CFLAG          => \$mf_cflag,
        DEPFLAG        => \$mf_depflag,
        CPUID_OBJ      => \$mf_cpuid_asm,
@@ -324,6 +325,7 @@ else
 
 print STDERR "platform = $orig_platform\n";
 $cflags = $mf_cflag if $orig_platform eq 'auto';
+$cc = $mf_cc if $orig_platform eq 'auto';
 
 $ex_libs="$l_flags$ex_libs" if ($l_flags ne "");