From 4c49a3d8cd00489e62ab7398d05285361039ef13 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 16 Sep 2013 15:25:01 -0700 Subject: [PATCH] mk: Fix valgrinding with jemalloc This fixes valgrind on the linux snapshot bot. The command added here makes us require a fairly recent valgrind. --- mk/platform.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mk/platform.mk b/mk/platform.mk index 6ee5420664d..ac6cf3c5451 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -47,8 +47,11 @@ else CFG_GCCISH_CFLAGS += -O2 endif +# The soname thing is for supporting a statically linked jemalloc. +# see https://blog.mozilla.org/jseward/2012/06/05/valgrind-now-supports-jemalloc-builds-directly/ ifdef CFG_VALGRIND CFG_VALGRIND += --error-exitcode=100 \ + --soname-synonyms=somalloc=NONE \ --quiet \ --suppressions=$(CFG_SRC_DIR)src/etc/x86.supp \ $(OS_SUPP)