002-fix-kernel-version-detection.patch 392 B

1234567891011
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -44,7 +44,7 @@ regular_CFLAGS="-Wall -Waggregate-return
  4. if test -n "$kbuilddir"; then
  5. AC_MSG_CHECKING([kernel version that we will build against])
  6. - krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease)";
  7. + krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)";
  8. kmajor="${krel%%[[^0-9]]*}";
  9. kmajor="$(($kmajor+0))";
  10. krel="${krel:${#kmajor}}";