From 7df9a90c1ffba3cb3c44d89655e7fe633ecef80e Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 7 Apr 2020 04:29:04 +0200 Subject: [PATCH] ruby: link against ucontext on ppc(64)-musl --- srcpkgs/ruby/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template index 137d46a311..e9b0682079 100644 --- a/srcpkgs/ruby/template +++ b/srcpkgs/ruby/template @@ -34,6 +34,7 @@ case "$XBPS_TARGET_MACHINE" in arm*-musl) # Default is ucontext configure_args+=" --with-coroutine=arm32" ;; + ppc64-musl|ppc-musl) makedepends+=" libucontext-devel";; esac if [ "$CROSS_BUILD" ]; then @@ -45,6 +46,13 @@ post_patch() { echo "Patching out using binary gems for non-glibc..." patch -sNp1 -i ${FILESDIR}/rubygems-avoid-platform-specific-gems.patch + + case "$XBPS_TARGET_MACHINE" in + ppc64-musl|ppc-musl) + vsed -i 's,^EXTLIBS =$,EXTLIBS = -lucontext,' template/Makefile.in + vsed -i 's, \-lc\",-lc -lucontext\",g' configure + ;; + esac } pre_build() {