From e9f3b5a7d1609a169a6b6339b7b8a3c0be191efb Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 15 Feb 2019 17:31:41 +0100 Subject: 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 --- 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) } -- cgit v1.2.3