Skip GPL-only symbols test when cross-compiling

Signed-off-by: Kamil Domański <kamil@domanski.co>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4107
This commit is contained in:
Kamil Domański 2015-12-16 17:24:28 +01:00 committed by Brian Behlendorf
parent dcb6bed1df
commit 76d5bf196c

View File

@ -448,6 +448,7 @@ dnl # detected at configure time and cause a build failure. Otherwise
dnl # modules may be successfully built that behave incorrectly.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_CONFIG], [
AS_IF([test "x$cross_compiling" != xyes], [
AC_RUN_IFELSE([
AC_LANG_PROGRAM([
#include "$LINUX/include/linux/license.h"
@ -459,6 +460,7 @@ AC_DEFUN([ZFS_AC_KERNEL_CONFIG], [
[Define to 1 if GPL-only symbols can be used])
], [
])
])
ZFS_AC_KERNEL_CONFIG_THREAD_SIZE
ZFS_AC_KERNEL_CONFIG_DEBUG_LOCK_ALLOC