commit:     e8354517d6f3dfc4ffc0bf56f06cda700cdc812e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 25 01:52:54 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Mar 25 03:18:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8354517

x11-terms/kitty: adjust GOFLAGS for ppc64be

Matches go-modules.eclass

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-terms/kitty/kitty-0.27.1.ebuild | 3 ++-
 x11-terms/kitty/kitty-9999.ebuild   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/x11-terms/kitty/kitty-0.27.1.ebuild 
b/x11-terms/kitty/kitty-0.27.1.ebuild
index 295c1c9a2500..c2975dd65e11 100644
--- a/x11-terms/kitty/kitty-0.27.1.ebuild
+++ b/x11-terms/kitty/kitty-0.27.1.ebuild
@@ -117,7 +117,8 @@ src_prepare() {
 
 src_compile() {
        tc-export CC
-       local -x GOFLAGS="-buildmode=pie -p=$(makeopts_jobs) -v -x"
+       local -x GOFLAGS="-p=$(makeopts_jobs) -v -x"
+       use ppc64 && [[ $(tc-endian) == big ]] || GOFLAGS+=" -buildmode=pie"
        local -x PKGCONFIG_EXE=$(tc-getPKG_CONFIG)
 
        local conf=(

diff --git a/x11-terms/kitty/kitty-9999.ebuild 
b/x11-terms/kitty/kitty-9999.ebuild
index 707ea2a4a999..f07a85ea74e6 100644
--- a/x11-terms/kitty/kitty-9999.ebuild
+++ b/x11-terms/kitty/kitty-9999.ebuild
@@ -117,7 +117,8 @@ src_prepare() {
 
 src_compile() {
        tc-export CC
-       local -x GOFLAGS="-buildmode=pie -p=$(makeopts_jobs) -v -x"
+       local -x GOFLAGS="-p=$(makeopts_jobs) -v -x"
+       use ppc64 && [[ $(tc-endian) == big ]] || GOFLAGS+=" -buildmode=pie"
        local -x PKGCONFIG_EXE=$(tc-getPKG_CONFIG)
 
        local conf=(

Reply via email to