summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-14 07:14:08 +0100
committerSam James <sam@gentoo.org>2021-10-14 07:14:46 +0100
commit46cb1cb5a5e1f8eeba77ad733d3af149d8a4ce19 (patch)
treee9ea3e9f8f65196593e93f3a6e8b47d8e704d7e2 /eclass
parentsys-devel/binutils: cleanup Manifest (diff)
downloadprefix-46cb1cb5a5e1f8eeba77ad733d3af149d8a4ce19.tar.gz
prefix-46cb1cb5a5e1f8eeba77ad733d3af149d8a4ce19.tar.bz2
prefix-46cb1cb5a5e1f8eeba77ad733d3af149d8a4ce19.zip
toolchain.eclass: depend on virtual/libcrypt with USE=sanitize
Bug: https://bugs.gentoo.org/802648 Closes: https://bugs.gentoo.org/817974 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index da707d504d..2bdc8f5633 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -259,6 +259,13 @@ if tc_has_feature gcj ; then
DEPEND+=" gcj? ( awt? ( ${GCJ_GTK_DEPS} ) ${GCJ_DEPS} )"
fi
+if tc_has_feature sanitize ; then
+ # libsanitizer relies on 'crypt.h' to be present
+ # on target. glibc userdto provide it unconditionally.
+ # Nowadays it's a standalone library: #802648
+ DEPEND+=" sanitize? ( virtual/libcrypt )"
+fi
+
if tc_has_feature systemtap ; then
# gcc needs sys/sdt.h headers on target
DEPEND+=" systemtap? ( dev-util/systemtap )"