dev-libs/openssl: Allow eapply_user to modify gentoo.config
authorMatt Turner <mattst88@gentoo.org>
Sun, 10 Nov 2019 23:05:30 +0000 (15:05 -0800)
committerMatt Turner <mattst88@gentoo.org>
Sun, 10 Nov 2019 23:06:06 +0000 (15:06 -0800)
Signed-off-by: Matt Turner <mattst88@gentoo.org>
dev-libs/openssl/openssl-1.1.1d-r2.ebuild

index 68fb0b3b5ad995219aff8068682ccf650ad0f370..1b8d0ea6945d1760f20961e0d54266937100fdc9 100644 (file)
@@ -75,6 +75,10 @@ pkg_setup() {
 }
 
 src_prepare() {
+       # allow openssl to be cross-compiled
+       cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die
+       chmod a+rx gentoo.config || die
+
        if use bindist; then
                mv "${WORKDIR}"/bindist-patches/hobble-openssl "${WORKDIR}" || die
                bash "${WORKDIR}"/hobble-openssl || die
@@ -142,10 +146,6 @@ src_prepare() {
        # and 'make depend' uses -Werror for added fun (#417795 again)
        [[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
 
-       # allow openssl to be cross-compiled
-       cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die
-       chmod a+rx gentoo.config || die
-
        append-flags -fno-strict-aliasing
        append-flags $(test-flags-CC -Wa,--noexecstack)
        append-cppflags -DOPENSSL_NO_BUF_FREELISTS