libfido2: fix musl builds

This commit is contained in:
Jürgen Buchmüller 2020-09-02 13:38:19 +02:00
parent c4d95e1474
commit ccf04b78df
1 changed files with 7 additions and 1 deletions

View File

@ -14,9 +14,15 @@ checksum=5990f923c9390fe1e6a00ba5d1d1f74030e7344b855e971d9fb7223e70ff3122
CFLAGS="-Wno-type-limits"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
CFLAGS+=" -Wno-overflow" # ioctl takes int on musl
# ioctl takes int on musl
CFLAGS+=" -Wno-overflow"
fi
pre_configure() {
vsed -i -e "s;sign-conversion;no-sign-conversion;" \
{tools,src,examples}/CMakeLists.txt
}
post_install() {
vlicense LICENSE
}