From 8b6036a477417c63865aa84efc34dde24990769d Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Sat, 5 Nov 2016 21:01:23 +0100 Subject: [PATCH] devil: fix gcc6 build again --- srcpkgs/devil/template | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/srcpkgs/devil/template b/srcpkgs/devil/template index a7bccea5341..5a9d337847f 100644 --- a/srcpkgs/devil/template +++ b/srcpkgs/devil/template @@ -28,11 +28,8 @@ pre_configure() { } post_configure() { - local _gccver - - # Disable RESTRICT_KEYWORD for gcc5 - _gccver=$(gcc --version|awk '/^gcc / { print $3 }') - if [ "${_gccver%%.*}" -gt 4 ]; then + # Disable RESTRICT_KEYWORD for gcc5 and newer + if [ ${XBPS_GCC_VERSION_MAJOR} -gt 4 ]; then sed -i include/IL/config.h \ -e's;#define RESTRICT_KEYWORD.*;#undef RESTRICT_KEYWORD;' fi