diff -r a84fefde0543 -r bf07e140c49c make/autoconf/basics.m4 --- a/make/autoconf/basics.m4 Wed Apr 10 13:21:38 2019 +0200 +++ b/make/autoconf/basics.m4 Wed Apr 10 07:04:35 2019 -0700 @@ -883,10 +883,11 @@ fi if test "x$CUSTOM_ROOT" != x; then - OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}" + WORKSPACE_ROOT="${CUSTOM_ROOT}" else - OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}" + WORKSPACE_ROOT="${TOPDIR}" fi + OUTPUTDIR="${WORKSPACE_ROOT}/build/${CONF_NAME}" $MKDIR -p "$OUTPUTDIR" if test ! -d "$OUTPUTDIR"; then AC_MSG_ERROR([Could not create build directory $OUTPUTDIR]) @@ -942,6 +943,7 @@ AC_SUBST(SPEC) AC_SUBST(CONF_NAME) AC_SUBST(OUTPUTDIR) + AC_SUBST(WORKSPACE_ROOT) AC_SUBST(CONFIGURESUPPORT_OUTPUTDIR) # The spec.gmk file contains all variables for the make system.