From 3fd28b4c54d884efa6efdd7a07b2e14ece5c3b88 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Wed, 7 Nov 2018 19:51:10 +0100 Subject: Don't remove unused functions in debug builds. Garbage collecting unused functions in debug mode meant that pdf_debug_obj() was not longer accessible in gdb, which defeats the purpose of this debug function. --- Makerules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makerules b/Makerules index 361dee12..b62374d5 100644 --- a/Makerules +++ b/Makerules @@ -22,7 +22,7 @@ SANITIZE_FLAGS += -fsanitize=leak ifeq ($(build),debug) CFLAGS += -pipe -g - LDFLAGS += -g $(LDREMOVEUNREACH) + LDFLAGS += -g else ifeq ($(build),release) CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s -- cgit v1.2.3