Skip to content

Commit

Permalink
julia: fix i686-musl and ppc*-musl builds
Browse files Browse the repository at this point in the history
These targets linking against libunwind also need libucontext
but julia does not consider pkg-config and libunwind.pc
  • Loading branch information
pullmoll committed Aug 31, 2020
1 parent 2a0939b commit f92a746
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion srcpkgs/julia/template
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,19 @@ aarch64*)
make_build_args+=" MARCH=armv8-a"
;;
esac
case "$XBPS_TARGET_MACHINE" in
i686-musl|ppc*-musl)
makedepends+=" libucontext-devel"
;;
esac

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() {
Expand Down

0 comments on commit f92a746

Please sign in to comment.