commit:     142bbed43bdd385b783c266b22107b0a6bf20bb0
Author:     Michael Haubenwallner <michael.haubenwallner <AT> ssi-schaefer 
<DOT> com>
AuthorDate: Mon May  9 15:54:18 2016 +0000
Commit:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Mon May  9 15:54:41 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=142bbed4

openssl: get_libname libs are not static even when named lib.a

 dev-libs/openssl/openssl-1.0.2g-r2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-libs/openssl/openssl-1.0.2g-r2.ebuild 
b/dev-libs/openssl/openssl-1.0.2g-r2.ebuild
index 619363b..5c4f2c0 100644
--- a/dev-libs/openssl/openssl-1.0.2g-r2.ebuild
+++ b/dev-libs/openssl/openssl-1.0.2g-r2.ebuild
@@ -234,7 +234,8 @@ multilib_src_install_all() {
        # build system: the static archives are built as PIC all the time.
        # Only way around this would be to manually configure+compile openssl
        # twice; once with shared lib support enabled and once without.
-       use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
+       use static-libs || find "${ED}"usr/lib -mindepth 1 -maxdepth 1 \
+               -name "lib*.a" -not -name "lib*$(get_libname)" -delete
 
        # create the certs directory
        dodir ${SSL_CNF_DIR}/certs

Reply via email to