Index: Makefile.standalone |
diff --git a/Makefile.standalone b/Makefile.standalone |
index 125791799e9fe2df94087a87efb2996a368d01aa..df533ca8bd53778612895a30da78de90ebf08547 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 |