From 65625927e077fe289857e71192f55d192832b64d Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Sat, 5 Nov 2016 20:44:02 +0100 Subject: [PATCH] firebird: fix gcc6 build again --- srcpkgs/firebird/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/firebird/template b/srcpkgs/firebird/template index c7dd663d275..3257704c8d6 100644 --- a/srcpkgs/firebird/template +++ b/srcpkgs/firebird/template @@ -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