Skip to content

Commit

Permalink
qt5-build.eclass: update gcc version check for 5.7 and qtwebengine
Browse files Browse the repository at this point in the history
(cherry picked from proj/qt commit 8ed3b65dd6316568c74cad5485936abd7f4f36a4)
  • Loading branch information
Pesa committed Feb 2, 2016
1 parent 7f0589c commit 97690bd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions eclass/qt5-build.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 97690bd

Please sign in to comment.