From: Richard Levitte Date: Mon, 22 Jan 2018 21:02:36 +0000 (+0100) Subject: When building shared libraries, only ln -s when simple and full name differ X-Git-Tag: OpenSSL_1_1_1-pre1~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5145%2Fhead;p=thirdparty%2Fopenssl.git 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) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 601a8ea3c14..6f33fcbd828 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 } }