19 lines · plain
1# SPDX-License-Identifier: GPL-2.0-or-later2 3CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined4TEST_GEN_PROGS := openat2_test resolve_test rename_attack_test5 6# gcc requires -static-libasan in order to ensure that Address Sanitizer's7# library is the first one loaded. However, clang already statically links the8# Address Sanitizer if -fsanitize is specified. Therefore, simply omit9# -static-libasan for clang builds.10ifeq ($(LLVM),)11 CFLAGS += -static-libasan12endif13 14LOCAL_HDRS += helpers.h15 16include ../lib.mk17 18$(TEST_GEN_PROGS): helpers.c19