commit: d4ff29b30952ca957b58b5878550f5d23f908dbf
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 19 19:27:09 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 19 19:30:55 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4ff29b3
go-module.eclass: use tc-endian from toolchain-funcs.eclass
matoro reports that any Go packages fail on ppc64 right now as
USE=big-endian is not an implicit USE flag. Switch to tc-endian
from toolchain-funcs.eclass instead.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/go-module.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index 5703b4fd8810..bcdd521619ac 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -352,7 +352,7 @@ go-module_setup_proxy() {
# - Otherwise do a normal unpack.
go-module_src_unpack() {
if use amd64 || use arm || use arm64 ||
- ( use ppc64 && ! use big-endian ) || use s390 || use x86; then
+ ( use ppc64 && [[ $(tc-endian) == "little" ]] ) || use s390 ||
use x86; then
GOFLAGS="-buildmode=pie ${GOFLAGS}"
fi
GOFLAGS="${GOFLAGS} -p=$(makeopts_jobs)"