Index: Makefile.standalone |
diff --git a/Makefile.standalone b/Makefile.standalone |
index 40d9692093f5e1c7c6beaed19fd19758d5c7a049..dbc1eb671e74980520b81241cebc2a4bfa191c97 100644 |
--- a/Makefile.standalone |
+++ b/Makefile.standalone |
@@ -170,6 +170,12 @@ else |
FORCEASM_LIT_TEST_EXCLUDES = |
endif |
+ifdef LINUX_MALLOC_PROFILE |
+ OBJDIR := $(OBJDIR)+MalProf |
+ CXX_EXTRA += -DALLOW_LINUX_MALLOC_PROFILE=1 |
+ LD_EXTRA += -Wl,--export-dynamic |
+endif |
+ |
SB_OBJDIR := $(OBJDIR)+Sandboxed |
SBB_OBJDIR := $(OBJDIR)+SandboxedBrowser |
@@ -299,6 +305,7 @@ SRCS = \ |
IceTimerTree.cpp \ |
IceTranslator.cpp \ |
IceTypes.cpp \ |
+ LinuxMallocProfiling.cpp \ |
main.cpp \ |
PNaClTranslator.cpp |