From 2b9526c277ed59ffe2c15ec359b7a7bf5f784f6f Mon Sep 17 00:00:00 2001 From: alpine-mips-patches Date: Fri, 30 Nov 2018 10:36:50 +0000 Subject: community/py-greenlet: fix build on mips* 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(-) (limited to 'community/py-greenlet') 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 @@ -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 } -- cgit v1.2.3