From a98426cecb16b718f31ecf9d1d0f14bd03c714ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthieu=20Berthom=C3=A9?= Date: Sun, 9 Oct 2022 18:48:29 +0200 Subject: [PATCH] sanitize undefined in LDFLAGS --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index cd614eec..bc4327cb 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,10 @@ LDFLAGS := \ -pthread \ -lrt +ifeq ($(DEBUG),1) +LDFLAGS := ${LDFLAGS} -fsanitize=undefined +endif + DESTDIR = PREFIX = /usr/local EXEC_PREFIX = $(PREFIX)