1# SPDX-License-Identifier: GPL-2.0-or-later 2 3CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined 4TEST_GEN_PROGS := openat2_test resolve_test rename_attack_test 5 6# gcc requires -static-libasan in order to ensure that Address Sanitizer's 7# library is the first one loaded. However, clang already statically links the 8# Address Sanitizer if -fsanitize is specified. Therefore, simply omit 9# -static-libasan for clang builds. 10ifeq ($(LLVM),) 11 CFLAGS += -static-libasan 12endif 13 14LOCAL_HDRS += helpers.h 15 16include ../lib.mk 17 18$(TEST_GEN_PROGS): helpers.c 19