[PATCH 60/94] sys-libs/glibc: add hurd -march=native workaround
Sam James <[email protected]>
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <bb91c44704ea34c65f2b1479da654aed1f22ebcf.1774994340.git.sam@gentoo.org> |
From: Andreas K. Hüttel <[email protected]> Signed-off-by: Andreas K. Hüttel <[email protected]> Signed-off-by: Sam James <[email protected]> --- sys-libs/glibc/glibc-2.43.ebuild | 5 +++++ sys-libs/glibc/glibc-9999.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sys-libs/glibc/glibc-2.43.ebuild b/sys-libs/glibc/glibc-2.43.ebuild index db83ed326cc90..48ed8e87a8d5b 100644 --- a/sys-libs/glibc/glibc-2.43.ebuild +++ b/sys-libs/glibc/glibc-2.43.ebuild @@ -393,6 +393,11 @@ setup_target_flags() { # For compatibility with older binaries at slight performance cost. use stack-realign && export CFLAGS_x86+=" -mstackrealign" fi + + if is_hurd ; then + # doesnt build with -march=native and probably other values, debugging required + filter-flags '-march=*' + fi ;; mips) # The mips abi cannot support the GNU style hashes. #233233 diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild index 05b4742ec7756..d0a4773647de6 100644 --- a/sys-libs/glibc/glibc-9999.ebuild +++ b/sys-libs/glibc/glibc-9999.ebuild @@ -393,6 +393,11 @@ setup_target_flags() { # For compatibility with older binaries at slight performance cost. use stack-realign && export CFLAGS_x86+=" -mstackrealign" fi + + if is_hurd ; then + # doesnt build with -march=native and probably other values, debugging required + filter-flags '-march=*' + fi ;; mips) # The mips abi cannot support the GNU style hashes. #233233 -- 2.53.0