summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-02-19 19:27:09 +0000
committerSam James <sam@gentoo.org>2023-02-19 19:30:55 +0000
commitd4ff29b30952ca957b58b5878550f5d23f908dbf (patch)
treee4c9e1a1d80e07e0a9ade71364e7f7f49580fa1c /eclass
parenttoolchain-funcs.eclass: document tc-endian (diff)
downloadgentoo-d4ff29b30952ca957b58b5878550f5d23f908dbf.tar.gz
gentoo-d4ff29b30952ca957b58b5878550f5d23f908dbf.tar.bz2
gentoo-d4ff29b30952ca957b58b5878550f5d23f908dbf.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/go-module.eclass2
1 files changed, 1 insertions, 1 deletions
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)"