From: Richard Levitte Date: Wed, 23 Sep 2020 15:59:39 +0000 (+0200) Subject: Configuration: Don't have shared libraries depend on themselves X-Git-Tag: openssl-3.0.0-alpha7~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=294e380220c5ab83c05f9c501120a6296f88abdc;p=thirdparty%2Fopenssl.git Configuration: Don't have shared libraries depend on themselves The NonStop config attributes mean that there's no separate "simple" and "full" shared library name, they are the same. Because we assumed that they would always differ, we ended up with this dependency: libcrypto.so: libcrypto.so A simple fix was all that was needed to clear that. Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/12960) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 20fe46e337f..ac19141a956 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -1472,19 +1472,22 @@ EOF my $fullobjs = join(" \\\n\t\t", fill_lines(' ', $COLUMNS - 16, @fullobjs)); - my $recipe = <<"EOF"; + my $recipe = ''; + + if ($simple ne $full) { + if (sharedaix()) { + $recipe .= <<"EOF"; $simple: $full -EOF - if (sharedaix()) { - $recipe .= <<"EOF"; rm -f $simple && \\ \$(AR) r $simple $full EOF - } elsif ($simple ne $full) { - $recipe .= <<"EOF"; + } else { + $recipe .= <<"EOF"; +$simple: $full rm -f $simple && \\ ln -s $full $simple EOF + } } $recipe .= <<"EOF"; $full: $fulldeps