mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-12 19:20:28 +03:00
48ef8ba070
Split the kernel interface configure checks in to seperate m4 macro files. This is intended to facilitate moving the spl source code in to the zfs repository. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #682
20 lines
555 B
Plaintext
20 lines
555 B
Plaintext
dnl #
|
|
dnl # config trim unused symbols,
|
|
dnl # Verify the kernel has CONFIG_TRIM_UNUSED_KSYMS DISABLED.
|
|
dnl #
|
|
AC_DEFUN([SPL_AC_CONFIG_TRIM_UNUSED_KSYMS], [
|
|
AC_MSG_CHECKING([whether CONFIG_TRIM_UNUSED_KSYM is disabled])
|
|
SPL_LINUX_TRY_COMPILE([
|
|
#if defined(CONFIG_TRIM_UNUSED_KSYMS)
|
|
#error CONFIG_TRIM_UNUSED_KSYMS not defined
|
|
#endif
|
|
],[ ],[
|
|
AC_MSG_RESULT([yes])
|
|
],[
|
|
AC_MSG_RESULT([no])
|
|
AC_MSG_ERROR([
|
|
*** This kernel has unused symbols trimming enabled, please disable.
|
|
*** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set.])
|
|
])
|
|
])
|