summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-11-07 19:51:10 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-07 20:02:57 +0100
commit3fd28b4c54d884efa6efdd7a07b2e14ece5c3b88 (patch)
tree4a3c345bea99024648c38b3a1b513688c30148ad
parent7f5ccdee1f8a990e1cd675bd1a7ab4673e797f46 (diff)
downloadmupdf-3fd28b4c54d884efa6efdd7a07b2e14ece5c3b88.tar.xz
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.
-rw-r--r--Makerules2
1 files changed, 1 insertions, 1 deletions
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