Add in easy-to-use electric-fence support.
-Erik
This commit is contained in:
parent
60b2d8d2c8
commit
24073c7665
10
Makefile
10
Makefile
@ -60,6 +60,10 @@ USE_SYSTEM_PWD_GRP = true
|
|||||||
# Do not enable this for production builds...
|
# Do not enable this for production builds...
|
||||||
DODMALLOC = false
|
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.
|
# If you want large file summit support, turn this on.
|
||||||
# This has no effect if you don't have a kernel with lfs
|
# This has no effect if you don't have a kernel with lfs
|
||||||
# support, and a system with libc-2.1.3 or later.
|
# support, and a system with libc-2.1.3 or later.
|
||||||
@ -131,6 +135,12 @@ ifeq ($(strip $(DODMALLOC)),true)
|
|||||||
LIBRARIES = -ldmalloc
|
LIBRARIES = -ldmalloc
|
||||||
# Force debug=true, since this is useless when not debugging...
|
# Force debug=true, since this is useless when not debugging...
|
||||||
DODEBUG = true
|
DODEBUG = true
|
||||||
|
else
|
||||||
|
ifeq ($(strip $(DOEFENCE)),true)
|
||||||
|
LIBRARIES = -lefence
|
||||||
|
# Force debug=true, since this is useless when not debugging...
|
||||||
|
DODEBUG = true
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(DODEBUG)),true)
|
ifeq ($(strip $(DODEBUG)),true)
|
||||||
CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE
|
CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user