From 943515aa092eacdb79f6be8f7ad6c4200d059c05 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 10 Jun 2026 22:39:02 +0100 Subject: [PATCH] llvm-core/lld: only add -mearly-ra=none for arm64 Bug: https://bugs.gentoo.org/958469 Fixes: 052524cdbebac5738097c1d483d72f578977ded1 Signed-off-by: Sam James --- llvm-core/lld/lld-21.1.8-r1.ebuild | 2 +- llvm-core/lld/lld-22.1.7-r1.ebuild | 2 +- llvm-core/lld/lld-23.0.0.9999.ebuild | 2 +- llvm-core/lld/lld-23.0.0_pre20260605.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm-core/lld/lld-21.1.8-r1.ebuild b/llvm-core/lld/lld-21.1.8-r1.ebuild index 989b9958f041f..7d6418d337b3b 100644 --- a/llvm-core/lld/lld-21.1.8-r1.ebuild +++ b/llvm-core/lld/lld-21.1.8-r1.ebuild @@ -63,7 +63,7 @@ src_configure() { use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" # https://gcc.gnu.org/PR121495 (bug #958469) - tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none + use arm64 && tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152 diff --git a/llvm-core/lld/lld-22.1.7-r1.ebuild b/llvm-core/lld/lld-22.1.7-r1.ebuild index 9c7f2ac287068..a060be63d6123 100644 --- a/llvm-core/lld/lld-22.1.7-r1.ebuild +++ b/llvm-core/lld/lld-22.1.7-r1.ebuild @@ -63,7 +63,7 @@ src_configure() { use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" # https://gcc.gnu.org/PR121495 (bug #958469) - tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none + use arm64 && tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152 diff --git a/llvm-core/lld/lld-23.0.0.9999.ebuild b/llvm-core/lld/lld-23.0.0.9999.ebuild index ce1e96ef4e45c..43dab2074a718 100644 --- a/llvm-core/lld/lld-23.0.0.9999.ebuild +++ b/llvm-core/lld/lld-23.0.0.9999.ebuild @@ -62,7 +62,7 @@ src_configure() { use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" # https://gcc.gnu.org/PR121495 (bug #958469) - tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none + use arm64 && tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152 diff --git a/llvm-core/lld/lld-23.0.0_pre20260605.ebuild b/llvm-core/lld/lld-23.0.0_pre20260605.ebuild index ce1e96ef4e45c..43dab2074a718 100644 --- a/llvm-core/lld/lld-23.0.0_pre20260605.ebuild +++ b/llvm-core/lld/lld-23.0.0_pre20260605.ebuild @@ -62,7 +62,7 @@ src_configure() { use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" # https://gcc.gnu.org/PR121495 (bug #958469) - tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none + use arm64 && tc-is-gcc && [[ $(gcc-major-version) -ge 14 ]] && append-flags -mearly-ra=none use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152