From 3954efd6cfb95b3ac8056e6208be1b6878cdfed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 2 Sep 2020 13:28:07 +0200 Subject: [PATCH] libfido2: fix 32bit cross build --- srcpkgs/libfido2/template | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/srcpkgs/libfido2/template b/srcpkgs/libfido2/template index 00048b42729..51a959403db 100644 --- a/srcpkgs/libfido2/template +++ b/srcpkgs/libfido2/template @@ -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