summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-17 13:35:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-17 13:57:11 +0100
commit4dfe99b886d397d2d5784df88bc00d6a415e4b11 (patch)
tree90732c1143f575baec6917f2626cfc22e89b4126
parent8cddd0efb8e1c4cd801586c2f2916b6ffae451de (diff)
add GLIBCXX_FORCE_NEW for memcheck
-rw-r--r--solenv/gbuild/CppunitTest.mk2
-rw-r--r--solenv/inc/settings.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 1bb4b068dffe..ad8eb822c823 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -45,6 +45,8 @@ ifeq ($(strip $(VALGRIND)),memcheck)
gb_CppunitTest_VALGRINDTOOL += --leak-check=yes
G_SLICE := always-malloc
export G_SLICE
+GLIBCXX_FORCE_NEW := 1
+export GLIBCXX_FORCE_NEW
endif
endif
diff --git a/solenv/inc/settings.mk b/solenv/inc/settings.mk
index 5429a3605dda..8c94eefaf474 100644
--- a/solenv/inc/settings.mk
+++ b/solenv/inc/settings.mk
@@ -1032,6 +1032,8 @@ VALGRINDTOOL=valgrind --tool=$(VALGRIND) --num-callers=50
VALGRINDTOOL+=--leak-check=yes
G_SLICE*:=always-malloc
.EXPORT : G_SLICE
+GLIBCXX_FORCE_NEW*:=1
+.EXPORT : GLIBCXX_FORCE_NEW
.ENDIF
.ENDIF