Mail archive
alpine-aports

[alpine-aports] [PATCH] community/py-greenlet: fix build on mips*

From: alpine-mips-patches <info_at_mobile-stream.com>
Date: Fri, 30 Nov 2018 10:36:50 +0000

Build fails at switch_mips_unix.h with "$fp cannot be used in asm here"
because of forced -O0 (thus without -fomit-frame-pointer) in APKBUILD.

As a quick fix, use the "normal" C*FLAGS on mips* only. Test still
passes on mipsel at least.
---
 community/py-greenlet/APKBUILD | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/community/py-greenlet/APKBUILD b/community/py-greenlet/APKBUILD
index 068d3aa965..50633c5630 100644
--- a/community/py-greenlet/APKBUILD
+++ b/community/py-greenlet/APKBUILD
_at_@ -18,7 +18,10 @@ builddir="$srcdir/$_pkgname-$pkgver"
 
 build() {
 	cd "$builddir"
-	export CFLAGS="-O0" CPPFLAGS="-O0" CXXFLAGS="-O0"
+	case "$CARCH" in
+	mips*) ;;
+	*) export CFLAGS="-O0" CPPFLAGS="-O0" CXXFLAGS="-O0" ;;
+	esac
 	python2 setup.py build
 	python3 setup.py build
 }
-- 
2.19.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Nov 30 2018 - 10:36:50 UTC