Building: make it possible to force linking with static OpenSSL libs
[openssl.git] / Configurations / windows-makefile.tmpl
index a0ee953dc6ea7159a3913c4362b58f00358d98f8..d7441107c93ca8b5fb7abec476128cccb0390cfc 100644 (file)
@@ -347,8 +347,10 @@ configdata.pm: "$(SRCDIR)\Configure" {- join(" ", map { '"'.$_.'"' } @{$config{b
  # It takes a list of library names and outputs a list of dependencies
  sub compute_lib_depends {
      if ($disabled{shared}) {
-        return map { $_.$libext } @_;
+        return map { $_ =~ /\.a$/ ? $`.$libext : $_.$libext } @_;
      }
+     die "Linking with static OpenSSL libraries is not supported in this configuration\n"
+         if grep /\.a$/, @_;
      return map { shlib_import($_) } @_;
  }