[Libreoffice-commits] .: solenv/gbuild solenv/inc

Caolán McNamara caolan at kemper.freedesktop.org
Fri Jun 17 06:12:11 PDT 2011


 solenv/gbuild/CppunitTest.mk |    2 ++
 solenv/inc/settings.mk       |    2 ++
 2 files changed, 4 insertions(+)

New commits:
commit 48d58a5f7157fdfd62dcad5f5ffba8e4a1cdc2eb
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jun 17 13:35:19 2011 +0100

    add GLIBCXX_FORCE_NEW for memcheck

diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 1bb4b06..ad8eb82 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 5429a36..8c94eef 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
 


More information about the Libreoffice-commits mailing list