aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew J. Hesford <[email protected]>2020-02-14 11:30:29 -0500
committerGitHub <[email protected]>2020-02-14 08:30:29 -0800
commitdb0ad393b1bb7f83167e1cece1fd896dd0e63d73 (patch)
tree0082a2e56cf3f034a13f33b560e493758556065f
parent4f4ddf98eeb3cf4a7b4f7a28188f24cb13074d1a (diff)
Use POSIX stdout/stderr redirect in configure macro
This PR fixes an issue wherein redirecting stdout and stderr when building kernel modules in configure tests relied on a bashism that does not work as expected when /bin/sh is not bash. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-By: Richard Laager <[email protected]> Signed-off-by: Andrew J. Hesford <[email protected]> Closes #9990 Closes #9998
-rw-r--r--config/kernel.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4
index 23643e0c3..6bb37937c 100644
--- a/config/kernel.m4
+++ b/config/kernel.m4
@@ -566,7 +566,7 @@ AC_DEFUN([ZFS_LINUX_COMPILE], [
AC_TRY_COMMAND([
KBUILD_MODPOST_NOFINAL="$5" KBUILD_MODPOST_WARN="$6"
make modules -k -j$TEST_JOBS -C $LINUX_OBJ $ARCH_UM
- M=$PWD/$1 &>$1/build.log])
+ M=$PWD/$1 >$1/build.log 2>&1])
AS_IF([AC_TRY_COMMAND([$2])], [$3], [$4])
])