libunwind: fix build for i686-musl

This commit is contained in:
Jürgen Buchmüller 2020-08-10 18:55:32 +02:00
parent a3afd33a52
commit ba50441e5b

View File

@ -14,7 +14,8 @@ checksum=df59c931bd4d7ebfd83ee481c943edf015138089b8e50abed8d9c57ba9338435
# LDFLAGS is necessary because libunwind.so itself uses getcontext/setcontext # LDFLAGS is necessary because libunwind.so itself uses getcontext/setcontext
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686-musl|ppc*-musl) makedepends+=" libucontext-devel"; LDFLAGS=" -lucontext" ;; i686-musl) LDFLAGS=" -lssp_nonshared" ;;
ppc*-musl) makedepends+=" libucontext-devel"; LDFLAGS=" -lucontext" ;;
*) ;; *) ;;
esac esac
@ -27,7 +28,7 @@ pre_configure() {
# it needs to be here because it's used directly in a macro in a # 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 # public header, so things using libunwind need linkage against it
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686-musl|ppc*-musl) ppc*-musl)
vsed -i src/unwind/libunwind.pc.in -e \ vsed -i src/unwind/libunwind.pc.in -e \
's/\-lunwind/\-lunwind \-lucontext/' 's/\-lunwind/\-lunwind \-lucontext/'
;; ;;