Skip to content

Commit

Permalink
Use autoconf variable for C preprocessor
Browse files Browse the repository at this point in the history
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 5, 2018
1 parent 16d2981 commit d000a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/kernel.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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"], [
Expand Down Expand Up @@ -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`
])
Expand Down

0 comments on commit d000a39

Please sign in to comment.