add GLIBCXX_FORCE_NEW for memcheck
This commit is contained in:
parent
8cddd0efb8
commit
4dfe99b886
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue