diff options
-rw-r--r-- | eclass/toolchain.eclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 12b86214a055..156ec3d0cf88 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1818,6 +1818,7 @@ toolchain_src_install() { dodir /etc/env.d/gcc create_gcc_env_entry + create_revdep_rebuild_entry # Setup the gcc_env_entry for hardened gcc 4 with minispecs want_minispecs && copy_minispecs_gcc_specs @@ -2138,6 +2139,20 @@ create_gcc_env_entry() { EOF } +create_revdep_rebuild_entry() { + dodir /etc/revdep-rebuild + local revdep_rebuild_base="/etc/revdep-rebuild/05cross-${CTARGET}-${GCC_CONFIG_VER}" + local revdep_rebuild_file="${ED}${revdep_rebuild_base}" + + is_crosscompile || return 0 + + cat <<-EOF > ${revdep_rebuild_file} + # Generated by ${CATEGORY}/${PF} + # Ignore libraries built for ${CTARGET}, https://bugs.gentoo.org/692844. + SEARCH_DIRS_MASK="${LIBPATH}" + EOF +} + copy_minispecs_gcc_specs() { # on gcc 6 we don't need minispecs if tc_version_is_at_least 6.0 ; then |