build: Add sanitizer options
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 20 Dec 2021 23:49:45 +0000 (15:49 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
commit95883e851724b373ff44ed229efc4dfcfbbde04d
treedeb7504987e02feae97dab86fe4fa8aaf9f8e2fa
parent717a49171c8ea008da2076eb1d6c67c3ccfa4aa9
build: Add sanitizer options

Build using Address Sanitizer (asan), Leak Sanitizer (lsan), or
Undefined Behavior Sanitizer (ubsan) by using one of these options for
the configure script:

  --enable-asan
  --enable-lsan
  --enable-ubsan

For each of these to work, the compiler must support the requested
sanitizer and the requisite libraries must be installed (libasan,
liblsan, libubsan).

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Makefile.am
acinclude.m4
configure.ac