From 0af6ef37c4a0a59cbb779acc3e3c3cc5f763878e Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 21 Oct 2022 14:10:45 +0200 Subject: [PATCH] modbuild: declare and export the build root in BUILD_ROOT --- Pmodules/libpbuild.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index cdd98bf..3de5450 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -1062,8 +1062,9 @@ _build_module() { local -r module_name="$1" local -r module_version="$2" - SRC_DIR="${PMODULES_TMPDIR}/${module_name}-${module_version}/src" - BUILD_DIR="${PMODULES_TMPDIR}/${module_name}-${module_version}/build" + declare -g BUILD_ROOT="${PMODULES_TMPDIR}/${module_name}-${module_version}" + SRC_DIR="${BUILD_ROOT}/src" + BUILD_DIR="${BUILD_ROOT}/build" # P and V can be used in the build-script, so we have to set them here P="${module_name}"