mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
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:
parent
dcb6bed1df
commit
76d5bf196c
@ -448,16 +448,18 @@ dnl # detected at configure time and cause a build failure. Otherwise
|
|||||||
dnl # modules may be successfully built that behave incorrectly.
|
dnl # modules may be successfully built that behave incorrectly.
|
||||||
dnl #
|
dnl #
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_CONFIG], [
|
AC_DEFUN([ZFS_AC_KERNEL_CONFIG], [
|
||||||
AC_RUN_IFELSE([
|
AS_IF([test "x$cross_compiling" != xyes], [
|
||||||
AC_LANG_PROGRAM([
|
AC_RUN_IFELSE([
|
||||||
#include "$LINUX/include/linux/license.h"
|
AC_LANG_PROGRAM([
|
||||||
|
#include "$LINUX/include/linux/license.h"
|
||||||
|
], [
|
||||||
|
return !license_is_gpl_compatible("$ZFS_META_LICENSE");
|
||||||
|
])
|
||||||
|
], [
|
||||||
|
AC_DEFINE([ZFS_IS_GPL_COMPATIBLE], [1],
|
||||||
|
[Define to 1 if GPL-only symbols can be used])
|
||||||
], [
|
], [
|
||||||
return !license_is_gpl_compatible("$ZFS_META_LICENSE");
|
|
||||||
])
|
])
|
||||||
], [
|
|
||||||
AC_DEFINE([ZFS_IS_GPL_COMPATIBLE], [1],
|
|
||||||
[Define to 1 if GPL-only symbols can be used])
|
|
||||||
], [
|
|
||||||
])
|
])
|
||||||
|
|
||||||
ZFS_AC_KERNEL_CONFIG_THREAD_SIZE
|
ZFS_AC_KERNEL_CONFIG_THREAD_SIZE
|
||||||
|
Loading…
Reference in New Issue
Block a user