From 9879e4eb876cca788c4f284bdf5fe5572bf8262b Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 7 Apr 2020 16:53:12 +0200 Subject: [PATCH] ruby: fix the libucontext linkage on ppc-musl for real --- srcpkgs/ruby/template | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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() {