devil: fix gcc6 build again
This commit is contained in:
parent
8cb9cec041
commit
8b6036a477
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue