sessreg: fix gcc6 build again

This commit is contained in:
Juergen Buchmueller 2016-11-05 20:45:00 +01:00
parent 65625927e0
commit 28cd52e09c
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ case "$XBPS_TARGET_MACHINE" in
esac
pre_configure() {
local _gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
sed -e 's/\$(CPP) \$(DEFS)/$(CPP) -P $(DEFS)/' -i man/Makefile.in
fi
}