--- gx86/eclass/multibuild.eclass | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/gx86/eclass/multibuild.eclass b/gx86/eclass/multibuild.eclass index d42b8a7..a4d5d11 100644 --- a/gx86/eclass/multibuild.eclass +++ b/gx86/eclass/multibuild.eclass @@ -99,6 +99,10 @@ multibuild_foreach() { || die "MULTIBUILD_VARIANTS need to be set" local bdir=${BUILD_DIR:-${S}} + + # Avoid writing outside WORKDIR if S=${WORKDIR}. + [[ ${bdir%%/} == ${WORKDIR%%/} ]] && bdir=${WORKDIR}/build + local prev_id=${MULTIBUILD_ID:+${MULTIBUILD_ID}-} local ret=0 lret=0 v -- 1.8.1.4