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