Windows: Recreate the $prefix variable
[openssl.git] / Configurations / windows-makefile.tmpl
index b2e6cf5d5ee6e07761ac68a41f84581fe21209f0..fa430b6d6d233c3931ac1ffae3dcb17e8d653df9 100644 (file)
@@ -90,9 +90,9 @@ GENERATED={- join(" ",
 INSTALLTOP_dev={- # $prefix is used in the OPENSSLDIR perl snippet
                   #
                   use File::Spec::Functions qw(:DEFAULT splitpath);
+                  our $prefix = $config{prefix} || "$win_installroot\\OpenSSL";
                   our ($prefix_dev, $prefix_dir, $prefix_file) =
-                      splitpath($config{prefix} || "$win_installroot\\OpenSSL",
-                                1);
+                      splitpath($prefix, 1);
                   $prefix_dev -}
 INSTALLTOP_dir={- $prefix_dir -}
 OPENSSLDIR_dev={- #