When building shared libraries, only ln -s when simple and full name differ
[openssl.git] / Configurations / unix-Makefile.tmpl
index 601a8ea3c14e9e366411b40f3ccd25c1dd87be69..6f33fcbd8284a817f9b5aa7f8ab717fbddc5dcbe 100644 (file)
@@ -994,8 +994,10 @@ EOF
 EOF
       } else {
           $recipe .= <<"EOF";
-       rm -f $target
-       ln -s $target_full $target
+       if [ '$target' != '$target_full' ]; then \\
+               rm -f $target; \\
+               ln -s $target_full $target; \\
+       fi
 EOF
       }
   }