Permalink
Browse files

Use autoconf variable for C preprocessor

This fixes the build when cross-compiling, where the preprocessor might
be prefixed.

Signed-off-by: Ben Wolsieffer <benwolsieffer@gmail.com>
  • Loading branch information...
lopsided98 committed Dec 4, 2018
1 parent 16d2981 commit d000a394a6a62a6886ea80ae3ea5d8914356b418
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/kernel.m4
@@ -255,7 +255,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"], [
@@ -420,7 +420,7 @@ AC_DEFUN([ZFS_AC_SPL], [
splsrcver=`(echo "#include <spl_config.h>";
echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
cpp -I $splbuild |
${CPP} -I $splbuild - |
grep "^splsrcver=" | tr -d \" | cut -d= -f2`
])

0 comments on commit d000a39

Please sign in to comment.