From e9f3b5a7d1609a169a6b6339b7b8a3c0be191efb Mon Sep 17 00:00:00 2001
From: Florian Bruhin <me@the-compiler.org>
Date: Fri, 15 Feb 2019 17:31:41 +0100
Subject: [PATCH] Use QMAKE_GCC_MAJOR_VERSION to check GCC version for
 extensions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

At least on my system (Archlinux with a qt5.git super-build),
QT_GCC_MAJOR_VERSION seems to be unset when the test is run, causing it to fail
and extensions to be disabled (despite using GCC 8).

Change-Id: I384c6ebbbbe7245f41d014cd2f7aeca2fec73073
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
---
 configure.pri | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.pri b/configure.pri
index 46fec536a..8db31ddd3 100644
--- a/configure.pri
+++ b/configure.pri
@@ -314,6 +314,6 @@ defineTest(qtConfTest_hasThumbFlag) {
 }
 
 defineTest(qtConfTest_hasGcc6OrNewer) {
-    greaterThan(QT_GCC_MAJOR_VERSION, 5):return(true)
+    greaterThan(QMAKE_GCC_MAJOR_VERSION, 5):return(true)
     return(false)
 }
-- 
GitLab