devil: fix gcc6 build again

This commit is contained in:
Juergen Buchmueller 2016-11-05 21:01:23 +01:00
parent 8cb9cec041
commit 8b6036a477
1 changed files with 2 additions and 5 deletions

View File

@ -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