diff --git a/Makefile b/Makefile index 3e7cebe69..0759e95d1 100644 --- a/Makefile +++ b/Makefile @@ -89,9 +89,10 @@ afl: $(CMARK) $(CMARK_OPTS) libFuzzer: - CC=clang CXX=clang++ cmake -S . -B $(BUILDDIR) \ - -DCMAKE_BUILD_TYPE=Asan \ - -DCMARK_LIB_FUZZER=ON + CC=clang CXX=clang++ \ + CFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address \ + cmake -S . -B $(BUILDDIR) \ + -DCMARK_LIB_FUZZER=ON cmake --build $(BUILDDIR) mkdir -p fuzz/corpus $(BUILDDIR)/fuzz/cmark-fuzz \