it'd be nice if portage also respected $CTARGET just update ebuild.sh: if [ ! -z "${CTARGET}" ] ; then EXTRA_ECONF="--target=${CTARGET} ${EXTRA_ECONF}" fi then in the xpak stage echo $CTARGET > CTARGET
Bug has been fixed and released in stable portages on or before 2.0.51-r2