added -ldl for asan on some linux
This commit is contained in:
parent
180faa3594
commit
f1b3c7ad06
4
Makefile
4
Makefile
|
|
@ -30,12 +30,12 @@ endif
|
||||||
|
|
||||||
ifneq ($(asan),)
|
ifneq ($(asan),)
|
||||||
CFLAGS+=-fsanitize=address
|
CFLAGS+=-fsanitize=address
|
||||||
LIBS+=-fsanitize=address
|
LIBS+=-fsanitize=address -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(tsan),)
|
ifneq ($(tsan),)
|
||||||
CFLAGS+=-fsanitize=thread
|
CFLAGS+=-fsanitize=thread
|
||||||
LIBS+=-fsanitize=thread
|
LIBS+=-fsanitize=thread -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY:all extra clean depend
|
.PHONY:all extra clean depend
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue