diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-11-12 18:36:23 +0800 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2014-11-13 15:54:51 +0800 |
commit | 9ad835b1a386b20dcad037c4e78e81a9fcd32181 (patch) | |
tree | 44ecffa04372484995f53aeb474cc5c75cc35730 /meta/recipes-core/systemd/systemd/0001-configure.ac-add-valgrind-header-checking-option.patch | |
parent | 33b7885ecdc8774e34ac3534ec49fed6ffdb3916 (diff) | |
download | openembedded-core-contrib-9ad835b1a386b20dcad037c4e78e81a9fcd32181.tar.gz |
systemd: add option for valgrind header checkingChenQi/systemd-valgrindheader
Add option so that valgrind header checking is controlled. Otherwise,
we would get the following error.
src/libsystemd/sd-bus/bus-control.c: fatal error: valgrind/mencheck.h: No such file or directory
The above error could be reproduced by the following command.
bitbake valgrind && bitbake systemd -ccleansstate && bitbake systemd -cconfigure
&& bitbake valgrind -ccleansstate && bitbake systemd -ccompile
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0001-configure.ac-add-valgrind-header-checking-option.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0001-configure.ac-add-valgrind-header-checking-option.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0001-configure.ac-add-valgrind-header-checking-option.patch b/meta/recipes-core/systemd/systemd/0001-configure.ac-add-valgrind-header-checking-option.patch new file mode 100644 index 0000000000..89f334842f --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0001-configure.ac-add-valgrind-header-checking-option.patch @@ -0,0 +1,28 @@ +Upstream-Status: Pending + +Subject: configure.ac: add valgrind header checking option + +Signed-off-by: Chen qi <Qi.Chen@windriver.com> +--- + configure.ac | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 945adfc..dd4d7b2 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1141,7 +1141,10 @@ AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit]) + + AC_SUBST(TELINIT) + +-AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h]) ++AC_ARG_ENABLE(valgrindheader, AS_HELP_STRING([--disable-valgrindheader], [disable valgrind header checking])) ++if test "x$enable_valgrindheader" != "xno"; then ++ AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h]) ++fi + + # ------------------------------------------------------------------------------ + have_myhostname=no +-- +1.9.1 + |