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
|
arm*-musl) # Default is ucontext
|
||||||
configure_args+=" --with-coroutine=arm32"
|
configure_args+=" --with-coroutine=arm32"
|
||||||
;;
|
;;
|
||||||
|
ppc64-musl|ppc-musl) makedepends+=" libucontext-devel";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -45,6 +46,13 @@ post_patch() {
|
||||||
|
|
||||||
echo "Patching out using binary gems for non-glibc..."
|
echo "Patching out using binary gems for non-glibc..."
|
||||||
patch -sNp1 -i ${FILESDIR}/rubygems-avoid-platform-specific-gems.patch
|
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() {
|
pre_build() {
|
||||||
|
|
Loading…
Reference in a new issue