qt5-build.eclass: minor configure updates for 5.6 and later
authorDavide Pesavento <pesa@gentoo.org>
Thu, 19 Nov 2015 17:12:33 +0000 (18:12 +0100)
committerDavide Pesavento <pesa@gentoo.org>
Tue, 2 Feb 2016 18:34:47 +0000 (19:34 +0100)
(cherry picked from proj/qt commit f527f1e3a1b76d938085f26d25a88d07115c4b87)

eclass/qt5-build.eclass

index 04b17510da5de4f426b8068fdcd2f40fa4a30f43..c03daf331f90199384fe0b1736b25988c846746d 100644 (file)
@@ -503,11 +503,15 @@ qt5_base_configure() {
                -release
                -no-separate-debug-info
 
+               # no need to forcefully build host tools in optimized mode,
+               # just follow the overall debug/release build type
+               $([[ ${QT5_MINOR_VERSION} -ge 6 ]] && echo -no-optimized-tools)
+
                # licensing stuff
                -opensource -confirm-license
 
-               # let configure automatically figure out if C++11 is supported
-               #-c++11
+               # autodetect the highest supported version of the C++ standard
+               #-c++std <c++11|c++14|c++1z>
 
                # build shared libraries
                -shared
@@ -576,9 +580,6 @@ qt5_base_configure() {
                # print verbose information about each configure test
                -verbose
 
-               # doesn't actually matter since we override CXXFLAGS
-               #-no-optimized-qmake
-
                # obsolete flag, does nothing
                #-nis