commit:     0efc5ad7d63239a278a8d07c90a19787da57786e
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 17 08:15:03 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Jun 17 08:15:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0efc5ad7

sys-libs/glibc: override x86_lahf_sahf=no x86_movbe=no values

Reported-by: Matt Whitlock
Bug: https://bugs.gentoo.org/785091
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/glibc/glibc-2.33-r1.ebuild | 5 +++++
 sys-libs/glibc/glibc-9999.ebuild    | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/sys-libs/glibc/glibc-2.33-r1.ebuild 
b/sys-libs/glibc/glibc-2.33-r1.ebuild
index fc5b4b0474f..5e971e697fe 100644
--- a/sys-libs/glibc/glibc-2.33-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.33-r1.ebuild
@@ -940,6 +940,11 @@ glibc_do_configure() {
                # -march= option tricks build system to infer too
                # high ISA level: https://sourceware.org/PR27318
                libc_cv_include_x86_isa_level=no
+               # Explicit override of https://sourceware.org/PR27991
+               # exposes a bug in glibc's configure:
+               # https://sourceware.org/PR27991
+               libc_cv_have_x86_lahf_sahf=no
+               libc_cv_have_x86_movbe=no
 
                ${EXTRA_ECONF}
        )

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 112a714c393..e2bc0dad866 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -941,6 +941,11 @@ glibc_do_configure() {
                # -march= option tricks build system to infer too
                # high ISA level: https://sourceware.org/PR27318
                libc_cv_include_x86_isa_level=no
+               # Explicit override of https://sourceware.org/PR27991
+               # exposes a bug in glibc's configure:
+               # https://sourceware.org/PR27991
+               libc_cv_have_x86_lahf_sahf=no
+               libc_cv_have_x86_movbe=no
 
                ${EXTRA_ECONF}
        )

Reply via email to