diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-11-09 20:20:04 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-11-09 20:22:45 +0100 |
commit | 3bdb950f5edac0cdb09318cea307b4342a0fd714 (patch) | |
tree | 56bb4b759263574b0223ef83d69dde3b2574e703 /RepositoryExternal.mk | |
parent | configure: oops, let's try to fix that valgrind thing again... (diff) | |
download | core-3bdb950f5edac0cdb09318cea307b4342a0fd714.tar.gz core-3bdb950f5edac0cdb09318cea307b4342a0fd714.zip |
RepositoryExternal: fix gb_LinkTarget__use_valgrind
... which i've also managed to break, unaware of its existence.
Consolidate 2 different ways to use VALGRIND_CFLAGS.
Change-Id: I245c7a9a2b6bc904a227a15063cf5d8a2f64313c
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 3c0dc3a8bffe..782f3e5e4ea9 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -1527,11 +1527,13 @@ endef endif # SYSTEM_CURL -ifneq ($(VALGRIND_CFLAGS),) +# strip because of gb_SPACE +ifneq ($(strip $(VALGRIND_CFLAGS)),) define gb_LinkTarget__use_valgrind $(call gb_LinkTarget_add_defs,$(1),\ - -DHAVE_VALGRIND_H \ + -DHAVE_VALGRIND_H \ + -DHAVE_MEMCHECK_H \ ) $(call gb_LinkTarget_set_include,$(1),\ |