commit:     fc8b8de231ec20cd7c1a003d1b5270a2949ed966
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 27 20:11:42 2023 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 20:12:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc8b8de2

sys-libs/glibc: disable aarch64 mathvec for headers-only

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sys-libs/glibc/glibc-2.38-r7.ebuild | 9 ++++++++-
 sys-libs/glibc/glibc-9999.ebuild    | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.38-r7.ebuild 
b/sys-libs/glibc/glibc-2.38-r7.ebuild
index 59f45cf9d469..6326864811df 100644
--- a/sys-libs/glibc/glibc-2.38-r7.ebuild
+++ b/sys-libs/glibc/glibc-2.38-r7.ebuild
@@ -1165,7 +1165,15 @@ glibc_headers_configure() {
                popd >/dev/null
        fi
 
+       local myconf=()
+
        case ${CTARGET} in
+       aarch64*)
+               # The configure checks fail during cross-build, so disable here
+               # for headers-only
+               myconf+=(
+                       --disable-mathvec
+               ) ;;
        riscv*)
                # RISC-V interrogates the compiler to determine which target to
                # build.  If building the headers then we don't strictly need a
@@ -1184,7 +1192,6 @@ glibc_headers_configure() {
                ) ;;
        esac
 
-       local myconf=()
        myconf+=(
                --disable-sanity-checks
                --enable-hacker-mode

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 41218b9c69d0..512e39736db4 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -1165,7 +1165,15 @@ glibc_headers_configure() {
                popd >/dev/null
        fi
 
+       local myconf=()
+
        case ${CTARGET} in
+       aarch64*)
+               # The configure checks fail during cross-build, so disable here
+               # for headers-only
+               myconf+=(
+                       --disable-mathvec
+               ) ;;
        riscv*)
                # RISC-V interrogates the compiler to determine which target to
                # build.  If building the headers then we don't strictly need a
@@ -1184,7 +1192,6 @@ glibc_headers_configure() {
                ) ;;
        esac
 
-       local myconf=()
        myconf+=(
                --disable-sanity-checks
                --enable-hacker-mode

Reply via email to