julia: fix i686-musl and ppc*-musl builds

These targets linking against libunwind also need libucontext
but julia does not consider pkg-config and libunwind.pc
This commit is contained in:
Jürgen Buchmüller 2020-08-31 12:38:42 +02:00
parent 2a0939b430
commit f92a746387
1 changed files with 11 additions and 1 deletions

View File

@ -65,9 +65,19 @@ aarch64*)
make_build_args+=" MARCH=armv8-a" make_build_args+=" MARCH=armv8-a"
;; ;;
esac esac
case "$XBPS_TARGET_MACHINE" in
i686-musl|ppc*-musl)
makedepends+=" libucontext-devel"
;;
esac
post_extract() { post_extract() {
sed -i '/^install:/s| \$(BUILDROOT)/doc.*||' Makefile vsed -i '/^install:/s| \$(BUILDROOT)/doc.*||' Makefile
case "$XBPS_TARGET_MACHINE" in
i686-musl|ppc*-musl)
# Make.inc does not use pkg-config libunwind.pc
vsed -i 's;-lunwind;& -lucontext;' Make.inc
esac
} }
post_install() { post_install() {