Skip to content

Commit db0ad39

Browse files
authored
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
1 parent 4f4ddf9 commit db0ad39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/kernel.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ AC_DEFUN([ZFS_LINUX_COMPILE], [
566566
AC_TRY_COMMAND([
567567
KBUILD_MODPOST_NOFINAL="$5" KBUILD_MODPOST_WARN="$6"
568568
make modules -k -j$TEST_JOBS -C $LINUX_OBJ $ARCH_UM
569-
M=$PWD/$1 &>$1/build.log])
569+
M=$PWD/$1 >$1/build.log 2>&1])
570570
AS_IF([AC_TRY_COMMAND([$2])], [$3], [$4])
571571
])
572572

0 commit comments

Comments
 (0)