summaryrefslogtreecommitdiff
path: root/eclass/kde5-functions.eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-06-19 23:18:18 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-07-07 04:49:45 +1000
commit81fc1c44d2518da2bdb48bff5d465c35a8282b8e (patch)
tree25721b5e72f70abf06a50122f51b996c7bdd7450 /eclass/kde5-functions.eclass
parent02fb080473fee3fa528ac85245934ce8f23b63ae (diff)
downloadgentoo-81fc1c44d2518da2bdb48bff5d465c35a8282b8e.tar.gz
gentoo-81fc1c44d2518da2bdb48bff5d465c35a8282b8e.tar.xz
kde5-functions.eclass: only perform the GCC version check if KDE_GCC_MINIMAL is defined
Diffstat (limited to 'eclass/kde5-functions.eclass')
-rw-r--r--eclass/kde5-functions.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index df5d053d05c..2c45abc59fb 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#*.}