From ef19265438441518c0967281dedca72def5ea7dd Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 16 Feb 2024 20:34:58 -0500 Subject: [PATCH] restore ability to use gdb on NetHack built with mingw-w64 --- sys/windows/Makefile.mingw32 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/windows/Makefile.mingw32 b/sys/windows/Makefile.mingw32 index 980ca70cf..51ff26eaa 100644 --- a/sys/windows/Makefile.mingw32 +++ b/sys/windows/Makefile.mingw32 @@ -52,10 +52,15 @@ SOUND_LIBRARIES = windsound # #--------------------------------------------------------------- # Do you want debug information in the executable? -# Required for CRASHREPORT (but doesn't work yet, so off). # -DEBUGINFO = N +DEBUGINFO = Y + +# +#--------------------------------------------------------------- +# Required for CRASHREPORT (but doesn't work yet, so off). + +CRASHREPORT = N # #--------------------------------------------------------------- @@ -992,7 +997,7 @@ endif #COREOBJS += $(addsuffix .o, wc_chainin wc_chainout wc_trace) # XXX mess for testing libbacktrace -ifeq "$(DEBUGINFO)" "Y" +ifeq "$(CRASHREPORT)" "Y" CFLAGS += -I/mingw64/include -g -static -gdwarf LIBS += -L/mingw64/lib -lbacktrace endif