diff --git a/contrib/devtools/build_autotools.sh b/contrib/devtools/build_autotools.sh --- a/contrib/devtools/build_autotools.sh +++ b/contrib/devtools/build_autotools.sh @@ -21,7 +21,7 @@ read -a CONFIGURE_FLAGS <<< "$CONFIGURE_FLAGS --prefix=$(pwd)" -../configure --enable-deprecated-build-system "${CONFIGURE_FLAGS[@]}" +"${TOPLEVEL}"/configure --enable-deprecated-build-system "${CONFIGURE_FLAGS[@]}" # Run build make -j "${THREADS}" "$@" diff --git a/contrib/devtools/build_cmake.sh b/contrib/devtools/build_cmake.sh --- a/contrib/devtools/build_cmake.sh +++ b/contrib/devtools/build_cmake.sh @@ -62,7 +62,7 @@ esac done -cmake -GNinja .. "${CMAKE_FLAGS[@]}" +cmake -GNinja "${TOPLEVEL}" "${CMAKE_FLAGS[@]}" # If valid targets are given, use them, otherwise default to "all". if [ ${#TARGETS[@]} -eq 0 ]; then