aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-12-04 11:25:53 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-12-04 12:58:28 -0800
commitbada2e312a8b94c5fc2f5571b249c71cb466a640 (patch)
tree0d9ae0da8f6abf3e0f6136b581cdbeaca7c5be04 /configure
parent4df1fa6ddc8925a75f3da644d5da3bb16eb33f02 (diff)
downloadglibc-bada2e312a8b94c5fc2f5571b249c71cb466a640.zip
glibc-bada2e312a8b94c5fc2f5571b249c71cb466a640.tar.gz
glibc-bada2e312a8b94c5fc2f5571b249c71cb466a640.tar.bz2
Add --with-timeoutfactor=NUM to specify TIMEOUTFACTOR
On Ice Lake and Tiger Lake laptops, some test programs timeout when there are 3 "make check -j8" runs in parallel. Add --with-timeoutfactor=NUM to specify an integer to scale the timeout of test programs, which can be overriden by TIMEOUTFACTOR environment variable. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 2f9adca..e4d0139 100755
--- a/configure
+++ b/configure
@@ -764,6 +764,7 @@ with_selinux
with_headers
with_default_link
with_nonshared_cflags
+with_timeoutfactor
enable_sanity_checks
enable_shared
enable_profile
@@ -1482,6 +1483,8 @@ Optional Packages:
--with-default-link do not use explicit linker scripts
--with-nonshared-cflags=CFLAGS
build nonshared libraries with additional CFLAGS
+ --with-timeoutfactor=NUM
+ specify an integer to scale the timeout
--with-cpu=CPU select code for CPU variant
Some influential environment variables:
@@ -3386,6 +3389,19 @@ fi
+
+# Check whether --with-timeoutfactor was given.
+if test "${with_timeoutfactor+set}" = set; then :
+ withval=$with_timeoutfactor; timeoutfactor=$withval
+else
+ timeoutfactor=1
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define TIMEOUTFACTOR $timeoutfactor
+_ACEOF
+
+
# Check whether --enable-sanity-checks was given.
if test "${enable_sanity_checks+set}" = set; then :
enableval=$enable_sanity_checks; enable_sanity=$enableval