summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-05-16 22:54:38 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-05-16 23:01:18 +0100
commit91966aedd03d633af8476d824e2ee83a5181cc26 (patch)
treefd1b9174a1c1071fe4d65530bbf571f738f8405e /eclass/toolchain.eclass
parentsys-apps/s390-tools: use HTTPS (diff)
downloadgentoo-91966aedd03d633af8476d824e2ee83a5181cc26.tar.gz
gentoo-91966aedd03d633af8476d824e2ee83a5181cc26.tar.bz2
gentoo-91966aedd03d633af8476d824e2ee83a5181cc26.zip
toolchain.eclass: add IUSE=systemtap to gcc-8
Avoid automagic dependency on systemtap installed. Reported-by: lekto@o2.pl Bug: https://bugs.gentoo.org/654748 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 47ee5495739c..68e4ce15b377 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -154,6 +154,8 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
tc_version_is_at_least 4.9 && IUSE+=" +vtv"
tc_version_is_at_least 5.0 && IUSE+=" jit mpx"
tc_version_is_at_least 6.0 && IUSE+=" +pie +ssp +pch"
+ # systemtap is a gentoo-specific switch: bug #654748
+ tc_version_is_at_least 8.0 && IUSE+=" systemtap"
fi
IUSE+=" ${IUSE_DEF[*]/#/+}"
@@ -220,6 +222,11 @@ if in_iuse gcj ; then
DEPEND+=" gcj? ( awt? ( ${GCJ_GTK_DEPS} ) ${GCJ_DEPS} )"
fi
+if in_iuse systemtap ; then
+ # gcc needs sys/sdt.h headers on target
+ DEPEND+=" systemtap? ( dev-util/systemtap )"
+fi
+
PDEPEND=">=sys-devel/gcc-config-1.7"
#---->> S + SRC_URI essentials <<----
@@ -1229,6 +1236,10 @@ toolchain_src_configure() {
confgcc+=( $(use_enable mpx libmpx) )
fi
+ if in_iuse systemtap ; then
+ confgcc+=( $(use_enable systemtap) )
+ fi
+
if in_iuse vtv ; then
confgcc+=(
$(use_enable vtv vtable-verify)