aboutsummaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-08-17 15:39:49 +0200
committerRichard Levitte <levitte@openssl.org>2016-08-22 16:12:42 +0200
commita66234bc86a959e628e2010687c6fdf0fdbfdac3 (patch)
tree74ce104f4424495316314d7c2c2811d95fe1f4b4 /Configure
parent0110a4703608430c2131237c6afcf932a28c27ff (diff)
downloadopenssl-a66234bc86a959e628e2010687c6fdf0fdbfdac3.tar.gz
Configure: Properly cache the configured compiler command
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/Configure b/Configure
index 4a7d322804..b30b57f209 100755
--- a/Configure
+++ b/Configure
@@ -500,7 +500,7 @@ if (grep /^reconf(igure)?$/, @argvcopy) {
if (grep(/^reconf/,@argvcopy));
$ENV{CROSS_COMPILE} = $configdata::config{cross_compile_prefix}
if defined($configdata::config{cross_compile_prefix});
- $ENV{CROSS_COMPILE} = $configdata::config{cc}
+ $ENV{CC} = $configdata::config{cc}
if defined($configdata::config{cc});
print "Reconfiguring with: ", join(" ",@argvcopy), "\n";
@@ -938,6 +938,9 @@ $target{nm} = $ENV{'NM'} || $target{nm} || "nm";
$target{rc} =
$ENV{'RC'} || $ENV{'WINDRES'} || $target{rc} || "windres";
+# Cache the C compiler command for reconfiguration
+$config{cc} = $target{cc};
+
# For cflags, lflags, plib_lflags, ex_libs and defines, add the debug_
# or release_ attributes.
# Do it in such a way that no spurious space is appended (hence the grep).