From ad1bbb750b0b058f22b9dd65e59150c537a38e18 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sun, 29 May 2022 18:41:52 -0230 Subject: [PATCH] Enable _GLIBCXX_ASSERTIONS in debug compile mode in Linux/UNIX. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 23b5d6c2b..39e2324de 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,6 @@ srcdir ?= . -# -Wp,-D_GLIBCXX_ASSERTIONS DEFINES := -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 LDFLAGS := -pthread INCLUDES := @@ -80,8 +79,8 @@ ifdef PROFILE endif ifdef DEBUG - CXXFLAGS += -g - CFLAGS += -g + CXXFLAGS += -g -Wp,-D_GLIBCXX_ASSERTIONS + CFLAGS += -g -Wp,-D_GLIBCXX_ASSERTIONS else ifdef HAVE_GCC CXXFLAGS+= -fomit-frame-pointer