aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rwxr-xr-xsources/host-tools/make-3.81/build-make.sh7
-rwxr-xr-xsources/host-tools/make-3.81/build.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/sources/host-tools/make-3.81/build-make.sh b/sources/host-tools/make-3.81/build-make.sh
index b6200226e..edee4a5fd 100755
--- a/sources/host-tools/make-3.81/build-make.sh
+++ b/sources/host-tools/make-3.81/build-make.sh
@@ -42,6 +42,9 @@ register_var_option "--make=<path>" GNUMAKE "Specify GNU Make program for the bu
PACKAGE_DIR=
register_var_option "--package-dir=<path>" PACKAGE_DIR "Archive binaries into package directory"
+BUILD_DIR=
+register_var_option "--build-dir=<path>" BUILD_DIR "Specify temporary build dir."
+
extract_parameters "$@"
if [ -z "$CUSTOM_OUT" ]; then
@@ -62,7 +65,7 @@ log "Using sources from: $GNUMAKE_SRCDIR"
prepare_abi_configure_build
prepare_host_build
-TMP_SRCDIR=$NDK_TMPDIR/src
+TMP_SRCDIR=$BUILD_DIR/src
# We need to copy the sources to a temporary directory because
# the build system will modify some documentation files in the
@@ -71,7 +74,7 @@ log "Copying sources to temporary directory: $TMP_SRCDIR"
mkdir -p "$TMP_SRCDIR" && copy_directory "$GNUMAKE_SRCDIR" "$TMP_SRCDIR"
fail_panic "Could not copy GNU Make sources to: $TMP_SRCDIR"
-BUILD_DIR=$NDK_TMPDIR/build
+BUILD_DIR=$BUILD_DIR/build
CONFIGURE_FLAGS="--disable-nls --disable-rpath"
if [ "$MINGW" = "yes" ]; then
diff --git a/sources/host-tools/make-3.81/build.py b/sources/host-tools/make-3.81/build.py
index 5f9d670ee..afe4d27d6 100755
--- a/sources/host-tools/make-3.81/build.py
+++ b/sources/host-tools/make-3.81/build.py
@@ -36,6 +36,8 @@ def main(args):
if args.host != 'windows':
build_cmd.append('--try-64')
+ build_cmd.append('--build-dir=' + os.path.join(args.out_dir, 'make'))
+
build_support.build(build_cmd, args, intermediate_package=True)
if __name__ == '__main__':