[FFmpeg-devel] [PATCH] configure: add --tempprefix option
Michael Niedermayer
michaelni at gmx.at
Sat Oct 5 14:08:41 CEST 2013
With this and ccache configure execution time goes down from 3.9 to 2.4 seconds
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
configure | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configure b/configure
index 312c887..81e3c82 100755
--- a/configure
+++ b/configure
@@ -260,6 +260,7 @@ Advanced options (experts only):
--target-exec=CMD command to run executables on target
--target-path=DIR path to view of build directory on target
--target-samples=DIR path to samples directory on target
+ --tempprefix=PATH force fixed dir/prefix instead of mktemp for checks
--toolchain=NAME set tool defaults according to NAME
--nm=NM use nm tool NM [$nm_default]
--ar=AR use archive tool AR [$ar_default]
@@ -1664,6 +1665,7 @@ CMDLINE_SET="
target_os
target_path
target_samples
+ tempprefix
toolchain
valgrind
yasmexe
@@ -2669,6 +2671,12 @@ if ! check_cmd mktemp -u XXXXXX; then
}
fi
+if [ -n "$tempprefix" ] ; then
+ mktemp(){
+ echo $tempprefix.${HOSTNAME}.${UID}
+ }
+fi
+
tmpfile(){
tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
(set -C; exec > $tmp) 2>/dev/null ||
--
1.7.9.5
More information about the ffmpeg-devel
mailing list