diff options
author | Linnnus <[email protected]> | 2024-02-04 09:46:52 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-02-04 20:26:23 +0100 |
commit | ead198ce3e2fbaa352f2700142ee9909f7d4bdb0 (patch) | |
tree | 805cbe5f515219ace3d1e9f9f0393261a133937a | |
parent | 2967d8f1b6636b46ec648e9efba2f79573c20da8 (diff) |
build: linking errors agaist libasan
Since -fsanitize essentially acts as -lasan, it should also be passed
when linking.
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |