brintos

brintos / linux-shallow public Read only

0
0
Text · 492 B · 4373cea Raw
16 lines · plain
1# SPDX-License-Identifier: GPL-2.0-or-later2 3CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined $(KHDR_INCLUDES)4 5# gcc requires -static-libasan in order to ensure that Address Sanitizer's6# library is the first one loaded. However, clang already statically links the7# Address Sanitizer if -fsanitize is specified. Therefore, simply omit8# -static-libasan for clang builds.9ifeq ($(LLVM),)10    CFLAGS += -static-libasan11endif12 13TEST_GEN_PROGS := fchmodat2_test14 15include ../lib.mk16