xbps: fix for gcc-7.1.0

This commit is contained in:
Jürgen Buchmüller 2017-05-08 15:21:18 +02:00
parent e9cfd8a96a
commit a4acdac8fd
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ checksum=fb97f78a2d1e78ca7fb74426bbc7edac7af36366491dbcf3b97db3aa1b20a8b7
# readdir_r is deprecated
CFLAGS="-Wno-error=deprecated-declarations"
if [ "$XBPS_GCC_VERSION_MAJOR" -ge 7 ]; then
CFLAGS+=" -Wno-format-truncation -Wno-implicit-fallthrough -Wno-unsafe-loop-optimizations"
fi
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel libarchive-devel"