configure: Add --enable-sanitize-address
authorMark Wielaard <mark@klomp.org>
Sun, 5 Dec 2021 01:22:26 +0000 (02:22 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 8 Dec 2021 23:29:48 +0000 (00:29 +0100)
commit5ba884a576afb0ec22660678790621b2a1c4a8e1
tree6d4782418b13256c4b7337bf802f46340a9cada7
parentb947f95c2ce7520bf439386209c95454f1add69e
configure: Add --enable-sanitize-address

--enable-sanitize-address makes sure that all code is compiled with
-fsanitizer=address and all tests run against libasan.

It can be combined with --enable-sanitize-undefined, but not with
--enable-valgrind.

In maintainer mode there is one program that causes leaks, i386_gendis,
so disable leak detection for that program.

One testcase, test_nlist, needs special linker flags, make sure it also
uses -fsanitizer=address when using the address sanitizer.

Signed-off-by: Mark Wielaard <mark@klomp.org>
ChangeLog
configure.ac
libcpu/ChangeLog
libcpu/Makefile.am
tests/ChangeLog
tests/Makefile.am