xbps: fix for gcc-7.1.0
This commit is contained in:
parent
e9cfd8a96a
commit
a4acdac8fd
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue