@@ -1061,6 +1060,29 @@ export PWORKDIR="$WORKDIR" src_install #|| abort_install "fail" + + if [[ "${MULTILIB_WRAPPER_IGNORE}" != "*" ]] ; then + MULTILIB_WRAPPER_MASK="${MULTILIB_WRAPPER_MASK:-*-config}" + for mypath in $(echo "${PATH}" | sed -e 's/:/ /g') ; do + for configscript in "${D}"${mypath}/${MULTILIB_WRAPPER_MASK} ; do + if [[ -f ${configscript} ]] && \ + [[ "${MULTILIB_WRAPPER_IGNORE/$(basename "${configscript}")}" == "${MULTILIB_WRAPPER_IGNORE}" ]]; then + while [[ -L ${configscript} ]] ; do + configscript="$(readlink "${configscript}")" + if [[ "${configscript:0:1}" != "/" ]] ; then + configscript="${D}${mypath}/${configscript}" + fi + done + if ! [[ -L ${configscript} ]] && \ + [[ "${MULTILIB_WRAPPER_IGNORE/$(basename "${configscript}")}" == "${MULTILIB_WRAPPER_IGNORE}" ]]; then + generate-config-wrapper "${configscript}" \ + || die "generating multilib config wrapper file for ${configscript} failed" + fi + fi + done + done + fi + prepall cd "${D}"