diff options
author | Ben Wolsieffer <[email protected]> | 2018-12-05 12:31:44 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-12-05 09:31:44 -0800 |
commit | 2aa398f3aa907b71e1f827aec8e59d5dd081cb6f (patch) | |
tree | 52463ab515e9e0af9c5f89f54e9df45bd67fa824 /config/kernel.m4 | |
parent | e3c85c0938c5d878927fcb812792b68fd056b188 (diff) |
Use autoconf variable for C preprocessor
This fixes the build when cross-compiling, where the preprocessor might
be prefixed.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Ben Wolsieffer <[email protected]>
Closes #8180
Diffstat (limited to 'config/kernel.m4')
-rw-r--r-- | config/kernel.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4 index 118f1d8dc..7330c00e1 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -275,7 +275,7 @@ AC_DEFUN([ZFS_AC_KERNEL], [ AS_IF([test "$utsrelease"], [ kernsrcver=`(echo "#include <$utsrelease>"; echo "kernsrcver=UTS_RELEASE") | - cpp -I $kernelbuild/include | + ${CPP} -I $kernelbuild/include - | grep "^kernsrcver=" | cut -d \" -f 2` AS_IF([test -z "$kernsrcver"], [ |