commit:     5cb8f23c151b3d98f9204427c1672a7b00743f40
Author:     Ian Jordan <immoloism <AT> gmail <DOT> com>
AuthorDate: Sat Jul 12 10:13:42 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 13 07:22:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cb8f23c

dev-libs/libgcrypt: filter -mfpmath=sse on x86

Temporary workaround for mfpmath=sse on x86 cauing issues when -msse is 
stripped with strip-flags.
As it's not clear cut on how to handle in flag-o-matic we can at least solve it 
the ebuild without risking breaking other packages.

Bug: https://bugs.gentoo.org/959349
Signed-off-by: Ian Jordan <immoloism <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42982
Closes: https://github.com/gentoo/gentoo/pull/42982
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
index c5917c3233f7..62ed5622435b 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
@@ -96,6 +96,11 @@ src_configure() {
        #
        use riscv && filter-lto
 
+       # Temporary workaround for mfpmath=sse on x86 cauing issues when -msse 
is
+       # stripped as it's not clear cut on how to handle in flag-o-matic we 
can at
+       # least solve it the ebuild see https://bugs.gentoo.org/959349
+       use x86 && filter-flags -mfpmath=sse
+
        # Hardcodes the path to FGREP in libgcrypt-config
        export ac_cv_path_SED="sed"
        export ac_cv_path_EGREP="grep -E"

Reply via email to