Configure: allow some file extensions to be overridden by target config.
authorAndy Polyakov <appro@openssl.org>
Thu, 14 Jun 2018 20:07:48 +0000 (22:07 +0200)
committerAndy Polyakov <appro@openssl.org>
Fri, 22 Jun 2018 08:56:17 +0000 (10:56 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6487)

Configure

index 9a600913c76269f9a7903c4dedd87acb22fc0de8..2e1902aeffdc7dd61b716ef8446fca79723d20b5 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1111,8 +1111,9 @@ $target{exe_extension}=".exe" if ($config{target} eq "DJGPP"
 $target{exe_extension}=".pm"  if ($config{target} =~ /vos/);
 
 ($target{shared_extension_simple}=$target{shared_extension})
-    =~ s|\.\$\(SHLIB_VERSION_NUMBER\)||;
-$target{dso_extension}=$target{shared_extension_simple};
+    =~ s|\.\$\(SHLIB_VERSION_NUMBER\)||
+    unless defined($target{shared_extension_simple});
+$target{dso_extension}//=$target{shared_extension_simple};
 ($target{shared_import_extension}=$target{shared_extension_simple}.".a")
     if ($config{target} =~ /^(?:Cygwin|mingw)/);