From e749242a9944bae80d94783d0603f9df7ec08471 Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Thu, 3 May 2018 14:56:28 -0700 Subject: [PATCH] Remove DEBUG_STACKFLAGS to bypass compiler error 'Support -fsanitize=address with --enable-asan' (fed9035) removed DEBUG_STACKFLAGS="-fstack-check" from zfs-build.m4 in master. However, that's too heavyweight a patch to merge in to the 0.7.x branch, so just take the one-liner we need to get around a compiler error on Fedora 28: $ ./configure --enable-debug --enable-debuginfo && make pkg-utils CC gethrtime.lo cc1: error: '-fstack-check=' and '-fstack-clash_protection' are mutually exclusive. Disabling '-fstack-check=' [-Werror] Signed-off-by: Tony Hutter Reviewed-by: Brian Behlendorf Requires-spl: #701 --- config/zfs-build.m4 | 1 - 1 file changed, 1 deletion(-) diff --git a/config/zfs-build.m4 b/config/zfs-build.m4 index 85571a8add..5e081c237a 100644 --- a/config/zfs-build.m4 +++ b/config/zfs-build.m4 @@ -10,7 +10,6 @@ AC_DEFUN([ZFS_AC_DEBUG_ENABLE], [ KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror" DEBUG_CFLAGS="-DDEBUG -Werror" - DEBUG_STACKFLAGS="-fstack-check" DEBUG_ZFS="_with_debug" AC_DEFINE(ZFS_DEBUG, 1, [zfs debugging enabled]) ])