From ead198ce3e2fbaa352f2700142ee9909f7d4bdb0 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sun, 4 Feb 2024 09:46:52 +0100 Subject: build: linking errors agaist libasan Since -fsanitize essentially acts as -lasan, it should also be passed when linking. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index afc9dda..eea6f03 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,10 @@ uninstall: rmdir $(PREFIX)/share/man/man1 >/dev/null 2>&1 || true build/simplewiki: build/main.o build/die.o build/arena.o build/strutil.o build/creole.o - $(CC) $(LDFLAGS) -o build/simplewiki $^ $(LDLIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o build/simplewiki $^ $(LDLIBS) build/creole-test: build/creole-test.o build/creole.o - $(CC) -o $@ $^ + $(CC) $(CFLAGS) -o $@ $^ build/creole-test.o: src/creole-test.c build/main.o: src/main.c src/arena.h src/die.h src/strutil.h src/creole.h -- cgit v1.2.3