xbps: use -Wno-error for gcc7
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user