libunwind: i686-musl needs libucontext also

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-06-15 18:56:12 +02:00
parent c4b722f9c2
commit f8c40f6151
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View file

@ -14,7 +14,7 @@ checksum=43997a3939b6ccdf2f669b50fdb8a4d3205374728c2923ddc2354c65260214f8
# LDFLAGS is necessary because libunwind.so itself uses getcontext/setcontext
case "$XBPS_TARGET_MACHINE" in
ppc*-musl) makedepends+=" libucontext-devel"; LDFLAGS=" -lucontext" ;;
i686-musl|ppc*-musl) makedepends+=" libucontext-devel"; LDFLAGS=" -lucontext" ;;
*) ;;
esac
@ -27,7 +27,7 @@ pre_configure() {
# it needs to be here because it's used directly in a macro in a
# public header, so things using libunwind need linkage against it
case "$XBPS_TARGET_MACHINE" in
ppc*-musl)
i686-musl|ppc*-musl)
sed -i 's/\-lunwind/\-lunwind \-lucontext/' \
src/unwind/libunwind.pc.in
;;
@ -43,7 +43,7 @@ libunwind-devel_package() {
depends="${sourcepkg}>=${version}"
case "$XBPS_TARGET_MACHINE" in
ppc*-musl) depends+=" libucontext-devel" ;;
i686-musl|ppc*-musl) depends+=" libucontext-devel" ;;
*) ;;
esac