commit: e974ac78c7eba3c5dd115e88bd2276dd1e4ecb4c
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 2 15:04:21 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 2 15:05:41 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e974ac78
profiles/arch/powerpc/ppc64/64le: set LDFLAGS_ppc64
A recent change to toolchain.eclass (bb2d045c02a6ca647ef3280f4987cbc0d14e5a7e)
starts
to use LDFLAGS_${ABI}. It turns out in the 64le profiles, we weren't overridding
LDLFLAGS_ppc64 so we were picking up the big-endian version (elf64ppc).
Fix that - which is in line with what we do for CFLAGS & CHOST in that file
anyway.
Closes: https://bugs.gentoo.org/915057
Signed-off-by: Sam James <sam <AT> gentoo.org>
profiles/arch/powerpc/ppc64/64le/make.defaults | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/profiles/arch/powerpc/ppc64/64le/make.defaults
b/profiles/arch/powerpc/ppc64/64le/make.defaults
index 7a7e3bdc53a1..7d877f4814d9 100644
--- a/profiles/arch/powerpc/ppc64/64le/make.defaults
+++ b/profiles/arch/powerpc/ppc64/64le/make.defaults
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
CHOST="powerpc64le-unknown-linux-gnu"
@@ -9,3 +9,6 @@ FCFLAGS="${CFLAGS}"
CHOST_ppc64="powerpc64le-unknown-linux-gnu"
CHOST_ppc="powerpcle-unknown-linux-gnu"
+LDFLAGS_ppc64="-m elf64lppc"
+# TODO: elf32lppc or elf32lppclinux?
+#LDFLAGS_ppc="-m elf32lppc"