kde5-functions.eclass: only perform the GCC version check if KDE_GCC_MINIMAL is defined
authorMichael Palimaka <kensington@gentoo.org>
Sun, 19 Jun 2016 13:18:18 +0000 (23:18 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 6 Jul 2016 18:49:45 +0000 (04:49 +1000)
eclass/kde5-functions.eclass

index df5d053d05c7557d898649222d5872ca3b5b3951..2c45abc59fb03d8ce46660198602d74ab908ba6c 100644 (file)
@@ -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#*.}