From 228e08543afe3fb5d15e9e3f40114f6ae1a3d793 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Sat, 18 Nov 2017 21:29:56 -0500 Subject: build: Force pkg-config lookup method for libpci This is some meson bug but this solution works for now. --- plugins/sysinfo/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sysinfo/meson.build b/plugins/sysinfo/meson.build index 7b4c9425..3781bd52 100644 --- a/plugins/sysinfo/meson.build +++ b/plugins/sysinfo/meson.build @@ -19,8 +19,8 @@ if system == 'linux' or system == 'darwin' ] if system == 'linux' - libpci = dependency('libpci', required: false) - if libpci.found() and cc.has_header('pci/pci.h') + libpci = dependency('libpci', required: false, method: 'pkg-config') + if libpci.found() sysinfo_deps += libpci sysinfo_cargs += '-DHAVE_LIBPCI' sysinfo_sources += 'unix/pci.c' -- cgit 1.4.1