Makefile 492 B

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