--- /usr/portage/eclass/multilib-build.eclass 2016-07-09 17:45:52.289876627 +0200 +++ /usr/portage/eclass/multilib-build.eclass 2016-07-09 17:46:03.139876647 +0200 @@ -417,6 +417,12 @@ local dir=${f%/*} local fn=${f##*/} + local EXEEXT + + if [ -f "${WORKDIR}/${P}-.default/config.log" ] ; then + eval $(grep "^EXEEXT=" "${WORKDIR}/${P}-.default/config.log") + f="${f}${EXEEXT}" + fi if [[ -L ${root}/${f} ]]; then # rewrite the symlink target