From 76f84067aa8f63bd13c348f235d1991076bc9a09 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Sat, 5 Nov 2016 20:59:25 +0100 Subject: [PATCH] xen: fix gcc6 build again --- srcpkgs/xen/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/xen/template b/srcpkgs/xen/template index 26268cc0098..a5f58b80087 100644 --- a/srcpkgs/xen/template +++ b/srcpkgs/xen/template @@ -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