aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b57d801d5..c8c9d4687 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,10 @@ USE_SYSTEM_PWD_GRP = true
60# Do not enable this for production builds... 60# Do not enable this for production builds...
61DODMALLOC = false 61DODMALLOC = false
62 62
63# Another very useful malloc debugging library.
64# Do not enable this for production builds...
65DOEFENCE = false
66
63# If you want large file summit support, turn this on. 67# If you want large file summit support, turn this on.
64# This has no effect if you don't have a kernel with lfs 68# This has no effect if you don't have a kernel with lfs
65# support, and a system with libc-2.1.3 or later. 69# support, and a system with libc-2.1.3 or later.
@@ -131,6 +135,12 @@ ifeq ($(strip $(DODMALLOC)),true)
131 LIBRARIES = -ldmalloc 135 LIBRARIES = -ldmalloc
132 # Force debug=true, since this is useless when not debugging... 136 # Force debug=true, since this is useless when not debugging...
133 DODEBUG = true 137 DODEBUG = true
138else
139 ifeq ($(strip $(DOEFENCE)),true)
140 LIBRARIES = -lefence
141 # Force debug=true, since this is useless when not debugging...
142 DODEBUG = true
143 endif
134endif 144endif
135ifeq ($(strip $(DODEBUG)),true) 145ifeq ($(strip $(DODEBUG)),true)
136 CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE 146 CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE