ruby: link against ucontext on ppc(64)-musl
This commit is contained in:
parent
551152c9ac
commit
7df9a90c1f
1 changed files with 8 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue