--- /usr/portage/eclass/multilib-build.eclass 2016-07-15 16:56:18.877512022 +0200 +++ /usr/portage/eclass/multilib-build.eclass 2016-07-15 16:59:34.895061466 +0200 @@ -418,6 +418,10 @@ local dir=${f%/*} local fn=${f##*/} + if ! [ -f "${root}/${f}" ] ; then + f="${f}$(get_exeext)" + fi + if [[ -L ${root}/${f} ]]; then # rewrite the symlink target local target