commit: ed887cafe7e652cfcf4525fbbd86b1d7930d180e
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 24 22:31:12 2023 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Jul 24 22:31:12 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed887caf
sys-libs/glibc: Boldly assume our aarch64 toolchain can build SVE instructions
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
sys-libs/glibc/glibc-9999.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 2d5a5b523933..79c3065fcb4e 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -1028,6 +1028,11 @@ glibc_do_configure() {
libc_cv_have_x86_lahf_sahf=no
libc_cv_have_x86_movbe=no
+ # On aarch64 there is no way to override -mcpu=native, and if
+ # the current cpu does not support SVE configure fails.
+ # Let's boldly assume our toolchain can always build SVE
instructions.
+ libc_cv_aarch64_sve_asm=yes
+
${EXTRA_ECONF}
)