libucontext: fix i686-musl build
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
501da27f0f
commit
c5f87d82d8
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue