- reinstate dmalloc and efence support
diff --git a/Makefile.flags b/Makefile.flags
index b7711f6..487300d 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -58,4 +58,13 @@
 ifeq ($(CONFIG_SELINUX),y)
 LDFLAGS += -lselinux -lsepol
 endif
+
+ifeq ($(CONFIG_EFENCE),y)
+LDFLAGS += -lefence
+endif
+
+ifeq ($(CONFIG_DMALLOC),y)
+LDFLAGS += -ldmalloc
+endif
+
 #LDFLAGS += -nostdlib