ruby: link against ucontext on ppc(64)-musl

This commit is contained in:
q66 2020-04-07 04:29:04 +02:00
parent 551152c9ac
commit 7df9a90c1f

View file

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