diff --git a/srcpkgs/firebird/template b/srcpkgs/firebird/template index c7dd663d27..3257704c8d 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