From ff61979f99e7dad339c523117e3daccdbeb9e659 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 19 Dec 2023 05:35:18 -0800 Subject: [PATCH] Be more explicit about -O0 -g in 2019/endoh --- 2019/endoh/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/2019/endoh/Makefile b/2019/endoh/Makefile index 473de4155..fb322c5de 100644 --- a/2019/endoh/Makefile +++ b/2019/endoh/Makefile @@ -65,7 +65,9 @@ CINCLUDE= # Optimization # -OPT= +# We MUST DISABLE THE OPTIMISER AND ENABLE -g because the entry is A BACKTRACE +# QUINE and NEEDS debugging symbols. +OPT= -O0 -g # Default flags for ANSI C compilation # @@ -129,6 +131,9 @@ all: data ${TARGET} clean clobber install love haste waste maker easter_egg \ sandwich supernova deep_magic magic charon pluto +# We FORCE the use of -O0 -g even if someone overrides it because this entry is +# a BACKTRACE QUINE and NEEDS DEBUGGING SYMBOLS. +# ${PROG}: ${PROG}.c ${CC} ${CFLAGS} -g $< -o $@ ${LDFLAGS}