diff options
author | Davide Pesavento <pesa@gentoo.org> | 2016-01-23 02:31:31 +0100 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2016-02-02 19:35:11 +0100 |
commit | 97690bdef2799734a6a8bae0fbcd48cf5381a548 (patch) | |
tree | 9b6ff2a40eadd400a5ebe7cc3763ffb9ad4399e9 /eclass/qt5-build.eclass | |
parent | qt5-build.eclass: warn about using -g/-ggdb with qtwebengine too (diff) | |
download | gentoo-97690bdef2799734a6a8bae0fbcd48cf5381a548.tar.gz gentoo-97690bdef2799734a6a8bae0fbcd48cf5381a548.tar.bz2 gentoo-97690bdef2799734a6a8bae0fbcd48cf5381a548.zip |
qt5-build.eclass: update gcc version check for 5.7 and qtwebengine
(cherry picked from proj/qt commit 8ed3b65dd6316568c74cad5485936abd7f4f36a4)
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index f71a35e4a270..1830d21a09c1 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -127,9 +127,14 @@ EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install sr # @DESCRIPTION: # Unpacks the sources. qt5-build_src_unpack() { - if [[ $(gcc-major-version) -lt 4 ]] || [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 5 ]]; then + local min_gcc4_minor_version=5 + if [[ ${QT5_MINOR_VERSION} -ge 7 || ${PN} == qtwebengine ]]; then + min_gcc4_minor_version=7 + fi + if [[ $(gcc-major-version) -lt 4 ]] || \ + [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt ${min_gcc4_minor_version} ]]; then ewarn - ewarn "Using a GCC version lower than 4.5 is not supported." + ewarn "Using a GCC version lower than 4.${min_gcc4_minor_version} is not supported." ewarn fi |