mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
make: add address sanitizer support
Install libasan first, e.g. on Fedora 32: dnf install -y libasan libasan-static. To compile with address sanitizer, pass ASAN=1 to make. AdressSanitizer helps to catch various memory bugs for which C/C++ is infamous. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Reviewed-by: Philipp Rudo <prudo@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
13016ebc5a
commit
42889edc0c
@@ -3,6 +3,9 @@ include ../common.mak
|
||||
CPIOINIT = $(call echocmd," CPIOINI ",/$@)./cpioinit
|
||||
INSTALL_SCRIPTS = 10-zfcpdump.install
|
||||
|
||||
ALL_CFLAGS += -fno-sanitize=all
|
||||
ALL_LDFLAGS += -fno-sanitize=all
|
||||
|
||||
ifeq (${HAVE_LIBC_STATIC},0)
|
||||
|
||||
all:
|
||||
|
||||
Reference in New Issue
Block a user