diff options
author | Richard Levitte <levitte@openssl.org> | 2018-01-22 22:02:36 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-01-22 23:27:55 +0100 |
commit | 50625bf5c374b0fe213501fb93c3a2168e8ba844 (patch) | |
tree | 6edcda9d9dcd4691a796fad7c7e4e01b4577ea95 /Configurations | |
parent | 44f23cd281f2ec58c41c7a12b0f4aac10ccd8782 (diff) |
When building shared libraries, only ln -s when simple and full name differ
Fixes #5143
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5144)
Diffstat (limited to 'Configurations')
-rw-r--r-- | Configurations/unix-Makefile.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 601a8ea3c1..6f33fcbd82 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -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 } } |