commit: 31412a689f5325c0f991bcd8a9be59faad300120 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Sun Jun 19 13:18:18 2016 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sun Jun 19 13:18:57 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=31412a68
kde5-functions.eclass: only perform the GCC version check if KDE_GCC_MINIMAL is defined eclass/kde5-functions.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index df5d053..2c45abc 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -76,7 +76,8 @@ export KDE_BUILD_TYPE # @DESCRIPTION: # Determine if the current GCC version is acceptable, otherwise die. _check_gcc_version() { - if [[ ${MERGE_TYPE} != binary ]]; then + if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]]; then + local version=$(gcc-version) local major=${version%.*} local minor=${version#*.}