X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=Configure;h=b30b57f209b69fa28247caf31d1c29ffb11c23ab;hp=4a7d32280402b57b67e2405dd04e38fe1221bd95;hb=e469945f2c884428b448a32154dc99f8b61d92fc;hpb=a9c27fe19f159391aac7e591b64b44c1ea9d3642 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).