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() {