kitty: fix build on ppc*-musl

This commit is contained in:
q66 2019-12-23 03:42:23 +01:00
parent 7febf540a9
commit 235f90af8a

View file

@ -18,6 +18,12 @@ patch_args="-Np1"
pycompile_version="$py3_ver"
LDFLAGS+=" -Wl,-z,stack-size=2097152"
# TIOCSWINSZ on ppc overflows signed int, used in ioctl()
# glibc defines it with ulong, musl with int (should be harmless)
case "$XBPS_TARGET_MACHINE" in
ppc*-musl) CFLAGS+=" -Wno-error=overflow";;
esac
do_build() {
if [ "$CROSS_BUILD" ]; then
CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"