From 50625bf5c374b0fe213501fb93c3a2168e8ba844 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 22 Jan 2018 22:02:36 +0100 Subject: [PATCH] When building shared libraries, only ln -s when simple and full name differ Fixes #5143 Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/5144) --- Configurations/unix-Makefile.tmpl | 6 ++++-- 1 file 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 } } -- 2.25.1