From f1b3c7ad0686862d051a38837a263bc63ee6c74c Mon Sep 17 00:00:00 2001 From: Heng Li Date: Tue, 25 Apr 2023 11:14:15 -0400 Subject: [PATCH] added -ldl for asan on some linux --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90b1cc4..17b13b6 100644 --- a/Makefile +++ b/Makefile @@ -30,12 +30,12 @@ endif ifneq ($(asan),) CFLAGS+=-fsanitize=address - LIBS+=-fsanitize=address + LIBS+=-fsanitize=address -ldl endif ifneq ($(tsan),) CFLAGS+=-fsanitize=thread - LIBS+=-fsanitize=thread + LIBS+=-fsanitize=thread -ldl endif .PHONY:all extra clean depend