commit: 46cb1cb5a5e1f8eeba77ad733d3af149d8a4ce19 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Oct 14 06:14:08 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Oct 14 06:14:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=46cb1cb5
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 <AT> gentoo.org> eclass/toolchain.eclass | 7 +++++++ 1 file changed, 7 insertions(+) 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 )"
