ruby: fix the libucontext linkage on ppc-musl for real
This commit is contained in:
parent
2c9feaaf9d
commit
9879e4eb87
1 changed files with 4 additions and 8 deletions
|
@ -37,7 +37,10 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
ppc64*) # Default is ucontext on BE, but ppc64le really just means ELFv2
|
ppc64*) # Default is ucontext on BE, but ppc64le really just means ELFv2
|
||||||
configure_args+=" --with-coroutine=ppc64le"
|
configure_args+=" --with-coroutine=ppc64le"
|
||||||
;;
|
;;
|
||||||
ppc-musl) makedepends+=" libucontext-devel";;
|
ppc-musl)
|
||||||
|
makedepends+=" libucontext-devel"
|
||||||
|
configure_args+=" LIBS=-lucontext"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -49,13 +52,6 @@ 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
|
|
||||||
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