libfido2: fix 32bit cross build

This commit is contained in:
Jürgen Buchmüller 2020-09-02 13:28:07 +02:00
parent b0804ec06d
commit 3954efd6cf
1 changed files with 4 additions and 5 deletions

View File

@ -12,11 +12,10 @@ homepage="https://github.com/Yubico/libfido2"
distfiles="https://github.com/Yubico/libfido2/archive/${version}.tar.gz"
checksum=5990f923c9390fe1e6a00ba5d1d1f74030e7344b855e971d9fb7223e70ff3122
case "$XBPS_TARGET_MACHINE" in
*-musl)
CFLAGS="-Wno-overflow" # ioctl takes int on musl
;;
esac
CFLAGS="-Wno-type-limits"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
CFLAGS+=" -Wno-overflow" # ioctl takes int on musl
fi
post_install() {
vlicense LICENSE