--- old/make/autoconf/basics.m4 2019-04-02 14:26:28.205782580 -0700 +++ new/make/autoconf/basics.m4 2019-04-02 14:26:27.745766711 -0700 @@ -881,10 +881,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]) @@ -940,6 +941,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.