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 <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Requires-spl: #701
This commit is contained in:
parent
9267ef84fd
commit
e749242a99
|
@ -10,7 +10,6 @@ AC_DEFUN([ZFS_AC_DEBUG_ENABLE], [
|
||||||
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
|
KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
|
||||||
HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
|
HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
|
||||||
DEBUG_CFLAGS="-DDEBUG -Werror"
|
DEBUG_CFLAGS="-DDEBUG -Werror"
|
||||||
DEBUG_STACKFLAGS="-fstack-check"
|
|
||||||
DEBUG_ZFS="_with_debug"
|
DEBUG_ZFS="_with_debug"
|
||||||
AC_DEFINE(ZFS_DEBUG, 1, [zfs debugging enabled])
|
AC_DEFINE(ZFS_DEBUG, 1, [zfs debugging enabled])
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue