Since ossl_typ.h is an exported header, we sure need to export it on
[openssl.git] / util / mklink.pl
index de555820ec9ef4556f85ff4534d9179309a0bf12..9e9c9a514677af6385dbe8e9d15f02e65ffe72a4 100755 (executable)
@@ -48,8 +48,13 @@ foreach $dirname (@from_path) {
 my $to = join('/', @to_path);
 
 my $file;
+$symlink_exists=eval {symlink("",""); 1};
 foreach $file (@files) {
-#    print "ln -s $to/$file $from/$file\n";
-    symlink("$to/$file", "$from/$file");
-    print $file . " => $from/$file\n";
+    my $err = "";
+    if ($symlink_exists) {
+       symlink("$to/$file", "$from/$file") or $err = " [$!]";
+    } else {
+       system ("cp", "$file", "$from/$file") and $err = " [$!]";
+    }
+    print $file . " => $from/$file$err\n";
 }