Makefile: integrate libasan to our build system

The libasan library allows to get reports for memory leaks and stack
issues at runtime, with very few performance drawbacks.

This commits add integration for this in the Makefile, for the default
target.

Signed-off-by: Adrien 'neox' Bourmault <neox@a-lec.org>
This commit is contained in:
Adrien Bourmault 2024-11-22 16:38:30 +01:00
parent 546497f349
commit 502fc8939f
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ DOXYGEN=doxygen
CFLAGS=`pkg-config --cflags gtk4 epoxy glib-2.0 libxml-2.0`
LDFLAGS=`pkg-config --libs gtk4 epoxy glib-2.0 libxml-2.0` -lGL -lGLU -lm -lepoxy -lX11 -lGLEW
WARNINGS = -Wall
DEBUG = -ggdb -fno-omit-frame-pointer #-fdiagnostics-color=always -fsanitize=bounds -fstack-check
DEBUG = -ggdb -fno-omit-frame-pointer \
-fdiagnostics-color=always \
-fsanitize=address,undefined -fstack-protector-strong
OPTIMIZE = -O3
BINDIR=bin