added -ldl for asan on some linux

This commit is contained in:
Heng Li 2023-04-25 11:14:15 -04:00
parent 180faa3594
commit f1b3c7ad06
1 changed files with 2 additions and 2 deletions

View File

@ -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