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.
This commit is contained in:
alpine-mips-patches 2018-11-30 10:36:50 +00:00 committed by Leonardo Arena
parent d989793e64
commit 2b9526c277

View File

@ -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
}