diff --git a/config/zfs-build.m4 b/config/zfs-build.m4 index f0c2066af4a2..34bacac8369f 100644 --- a/config/zfs-build.m4 +++ b/config/zfs-build.m4 @@ -59,9 +59,9 @@ AC_DEFUN([ZFS_AC_DEBUG], [ ]) AC_DEFUN([ZFS_AC_DEBUGINFO_ENABLE], [ - DEBUG_CFLAGS="$DEBUG_CFLAGS -g -fno-inline" + DEBUG_CFLAGS="$DEBUG_CFLAGS -g -fno-inline -fno-ipa-sra" - KERNEL_DEBUG_CFLAGS="$KERNEL_DEBUG_CFLAGS -fno-inline" + KERNEL_DEBUG_CFLAGS="$KERNEL_DEBUG_CFLAGS -fno-inline -fno-ipa-sra" KERNEL_MAKE="$KERNEL_MAKE CONFIG_DEBUG_INFO=y" DEBUGINFO_ZFS="_with_debuginfo"