diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template index f74426bfbe9..52eabb79152 100644 --- a/srcpkgs/ruby/template +++ b/srcpkgs/ruby/template @@ -37,7 +37,10 @@ case "$XBPS_TARGET_MACHINE" in ppc64*) # Default is ucontext on BE, but ppc64le really just means ELFv2 configure_args+=" --with-coroutine=ppc64le" ;; - ppc-musl) makedepends+=" libucontext-devel";; + ppc-musl) + makedepends+=" libucontext-devel" + configure_args+=" LIBS=-lucontext" + ;; esac if [ "$CROSS_BUILD" ]; then @@ -49,13 +52,6 @@ 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 - ppc-musl) - vsed -i 's,^EXTLIBS =$,EXTLIBS = -lucontext,' template/Makefile.in - vsed -i 's, \-lc\",-lc -lucontext\",g' configure - ;; - esac } pre_build() {