ruby: fix the libucontext linkage on ppc-musl for real

This commit is contained in:
q66 2020-04-07 16:53:12 +02:00
parent 2c9feaaf9d
commit 9879e4eb87

View file

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