summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-11-09 20:20:04 +0100
committerMichael Stahl <mstahl@redhat.com>2012-11-09 20:22:45 +0100
commit3bdb950f5edac0cdb09318cea307b4342a0fd714 (patch)
tree56bb4b759263574b0223ef83d69dde3b2574e703 /RepositoryExternal.mk
parentd91c37274fda0d18eeba684e905c2a2201d85134 (diff)
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.mk6
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),\