summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBen Wolsieffer <lopsided98@users.noreply.github.com>2018-12-05 12:31:44 -0500
committerBrian Behlendorf <behlendorf1@llnl.gov>2018-12-05 09:31:44 -0800
commit2aa398f3aa907b71e1f827aec8e59d5dd081cb6f (patch)
tree52463ab515e9e0af9c5f89f54e9df45bd67fa824 /config
parente3c85c0938c5d878927fcb812792b68fd056b188 (diff)
Use autoconf variable for C preprocessor
This fixes the build when cross-compiling, where the preprocessor might be prefixed. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Ben Wolsieffer <benwolsieffer@gmail.com> Closes #8180
Diffstat (limited to 'config')
-rw-r--r--config/kernel.m42
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"], [