xbps: use -Wno-error for gcc7

This commit is contained in:
Enno Boland 2018-02-26 11:27:45 +01:00
parent 9b5d792ae9
commit b26d75418a
No known key found for this signature in database
GPG key ID: D09964719BDE9971

View file

@ -11,11 +11,7 @@ license="2-clause-BSD"
distfiles="https://github.com/voidlinux/xbps/archive/$version.tar.gz"
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
CFLAGS="-Wno-error"
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel libarchive-devel"
@ -39,7 +35,6 @@ if [ "$CHROOT_READY" ]; then
fi
do_configure() {
CFLAGS+=" -Wno-error=redundant-decls"
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug \
--bindir=/usr/bin ${CHROOT_READY:+--enable-tests}
}