xen: fix gcc6 build again

This commit is contained in:
Juergen Buchmueller 2016-11-05 20:59:25 +01:00
parent 3a4a95e423
commit 76f84067aa
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ nostrip_files="
pycompile_module="xen grub"
pre_configure() {
local i _gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
[ "${_gccver%%.*}" -lt 6 ] && return 0
local i
[ ${XBPS_GCC_VERSION_MAJOR} -lt 6 ] && return 0
sed -i tools/configure -e's;-Werror;-Wno-error;g'
# Copy patches for _ipxe.tar.gz contents