summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen2001-04-03 22:53:19 +0000
committerEric Andersen2001-04-03 22:53:19 +0000
commit24073c76658b93172df8a7a397b84c91a789008a (patch)
tree90ea7c263386287834614a7c1b4ef1acc0a0f4bf /Makefile
parent60b2d8d2c8bf9e1bb3f34a3b16b272c2539a6318 (diff)
downloadbusybox-24073c76658b93172df8a7a397b84c91a789008a.zip
busybox-24073c76658b93172df8a7a397b84c91a789008a.tar.gz
Add in easy-to-use electric-fence support.
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b57d801..c8c9d46 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,10 @@ USE_SYSTEM_PWD_GRP = true
# Do not enable this for production builds...
DODMALLOC = false
+# Another very useful malloc debugging library.
+# Do not enable this for production builds...
+DOEFENCE = false
+
# If you want large file summit support, turn this on.
# This has no effect if you don't have a kernel with lfs
# support, and a system with libc-2.1.3 or later.
@@ -131,6 +135,12 @@ ifeq ($(strip $(DODMALLOC)),true)
LIBRARIES = -ldmalloc
# Force debug=true, since this is useless when not debugging...
DODEBUG = true
+else
+ ifeq ($(strip $(DOEFENCE)),true)
+ LIBRARIES = -lefence
+ # Force debug=true, since this is useless when not debugging...
+ DODEBUG = true
+ endif
endif
ifeq ($(strip $(DODEBUG)),true)
CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE