diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-03 22:53:19 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-03 22:53:19 +0000 |
commit | 24073c76658b93172df8a7a397b84c91a789008a (patch) | |
tree | 90ea7c263386287834614a7c1b4ef1acc0a0f4bf | |
parent | 60b2d8d2c8bf9e1bb3f34a3b16b272c2539a6318 (diff) | |
download | busybox-w32-24073c76658b93172df8a7a397b84c91a789008a.tar.gz busybox-w32-24073c76658b93172df8a7a397b84c91a789008a.tar.bz2 busybox-w32-24073c76658b93172df8a7a397b84c91a789008a.zip |
Add in easy-to-use electric-fence support.
-Erik
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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... |
61 | DODMALLOC = false | 61 | DODMALLOC = false |
62 | 62 | ||
63 | # Another very useful malloc debugging library. | ||
64 | # Do not enable this for production builds... | ||
65 | DOEFENCE = 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 |
138 | else | ||
139 | ifeq ($(strip $(DOEFENCE)),true) | ||
140 | LIBRARIES = -lefence | ||
141 | # Force debug=true, since this is useless when not debugging... | ||
142 | DODEBUG = true | ||
143 | endif | ||
134 | endif | 144 | endif |
135 | ifeq ($(strip $(DODEBUG)),true) | 145 | ifeq ($(strip $(DODEBUG)),true) |
136 | CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE | 146 | CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE |