]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus: Only use compile flags from valgrind, not libraries
authorSimon McVittie <smcv@collabora.com>
Mon, 27 Jun 2022 17:28:29 +0000 (18:28 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
Recent versions of valgrind have library code, which we don't need (or
want) to link to; all we actually want is <valgrind.h> and <memcheck.h>.

I had hoped that this would suppress the Requires.private when
generating our .pc file, but it doesn't seem to.

Signed-off-by: Simon McVittie <smcv@collabora.com>
dbus/meson.build

index 93ef61904ed22f6fcc32bf83f8bb4e589cf577c9..a4342d2dd98339a1e4440d1295cd3163e29aa464 100644 (file)
@@ -23,7 +23,7 @@ dbus_dependencies = [
     threads,
     network_libs,
     systemd,
-    valgrind,
+    valgrind.partial_dependency(compile_args: true),
 ]
 
 # source code that goes in the installed client library