diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index 6c25e6dfebc..64af001b50f 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -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"