commit:     bf435595a9b979a91898c1d86958cb776a31b192
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  4 02:53:24 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 03:13:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf435595

dev-libs/openssl: drop Makefile CFLAGS hackery

>From what I can tell, the current build system respects CFLAGS without
any intervention.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-libs/openssl/openssl-3.0.7-r4.ebuild | 23 +----------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/dev-libs/openssl/openssl-3.0.7-r4.ebuild 
b/dev-libs/openssl/openssl-3.0.7-r4.ebuild
index 6921c7f98501..0fd8cec1764e 100644
--- a/dev-libs/openssl/openssl-3.0.7-r4.ebuild
+++ b/dev-libs/openssl/openssl-3.0.7-r4.ebuild
@@ -201,28 +201,7 @@ multilib_src_configure() {
                threads
        )
 
-       CFLAGS= LDFLAGS= edo perl Configure "${myeconfargs[@]}"
-
-       # Clean out hardcoded flags that openssl uses
-       local DEFAULT_CFLAGS=$(grep ^CFLAGS= Makefile | LC_ALL=C sed \
-               -e 's:^CFLAGS=::' \
-               -e 's:\(^\| \)-fomit-frame-pointer::g' \
-               -e 's:\(^\| \)-O[^ ]*::g' \
-               -e 's:\(^\| \)-march=[^ ]*::g' \
-               -e 's:\(^\| \)-mcpu=[^ ]*::g' \
-               -e 's:\(^\| \)-m[^ ]*::g' \
-               -e 's:^ *::' \
-               -e 's: *$::' \
-               -e 's: \+: :g' \
-               -e 's:\\:\\\\:g'
-       )
-
-       # Now insert clean default flags with user flags
-       sed -i \
-               -e "/^CFLAGS=/s|=.*|=${DEFAULT_CFLAGS} ${CFLAGS}|" \
-               -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" \
-               Makefile \
-               || die
+       edo perl Configure "${myeconfargs[@]}"
 }
 
 multilib_src_compile() {

Reply via email to