diff options
author | alpine-mips-patches <info@mobile-stream.com> | 2018-11-30 10:36:50 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-12-17 10:40:51 +0000 |
commit | 2b9526c277ed59ffe2c15ec359b7a7bf5f784f6f (patch) | |
tree | 773e09fcd6599ac1bb5c346ba87529899208db1f /community | |
parent | d989793e640eaf607c7929d7efbc021e969dab60 (diff) | |
download | aports-2b9526c277ed59ffe2c15ec359b7a7bf5f784f6f.tar.bz2 aports-2b9526c277ed59ffe2c15ec359b7a7bf5f784f6f.tar.xz |
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.
Diffstat (limited to 'community')
-rw-r--r-- | community/py-greenlet/APKBUILD | 5 |
1 files changed, 4 insertions, 1 deletions
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 } |