add GLIBCXX_FORCE_NEW for memcheck

This commit is contained in:
Caolán McNamara 2011-06-17 13:35:19 +01:00
parent 8cddd0efb8
commit 4dfe99b886
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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