libucontext: fix i686-musl build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-04-07 13:49:32 +02:00
parent 501da27f0f
commit c5f87d82d8
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
1 changed files with 4 additions and 0 deletions

View File

@ -12,10 +12,14 @@ checksum=0dfe75b3f2d8e0b0b2901f0217bb4ab1baf319a1374a68c5242d776abb797e98
case "${XBPS_TARGET_MACHINE}" in
arm*) export LIBUCONTEXT_ARCH="arm";;
i686*) export LIBUCONTEXT_ARCH="x86";;
*) export LIBUCONTEXT_ARCH="${XBPS_TARGET_MACHINE%%-musl}";;
esac
do_build() {
case "${XBPS_TARGET_MACHINE}" in
i686*) sed -i arch/x86/startcontext.S -e "s;__i686.get_pc_thunk.bx;i686_get_pc_thunk_bx;g" ;;
esac
make ARCH="${LIBUCONTEXT_ARCH}"
}