firebird: fix gcc6 build again

This commit is contained in:
Juergen Buchmueller 2016-11-05 20:44:02 +01:00
parent 4705871f1d
commit 65625927e0

View file

@ -39,7 +39,7 @@ pre_configure() {
# Set -fPIC for btyacc tool to support PIE linker flags
sed -i extern/btyacc/Makefile -e 's;CFLAGS=;CFLAGS=-fPIC;'
if [ "${_gccver%%.*}" -gt 5 ]; then
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
# Fix gcc6 error for "void * operator new(size_t size) { return 0; }"
patch -p0 < ${FILESDIR}/fix-gcc6-no_throw_bad_alloc.patch
fi