[tracker: 1/2] libtracker-common: fix build on OpenBSD
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 1/2] libtracker-common: fix build on OpenBSD
- Date: Thu, 21 Feb 2019 20:49:36 +0000 (UTC)
commit 46175210daba1c99ed5fb51a106bb451a2e06e96
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Thu Feb 21 18:03:57 2019 +0100
libtracker-common: fix build on OpenBSD
We need to link with libkvm on OpenBSD (kvm_open, kvm_openfiles, etc.)
src/libtracker-common/meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-common/meson.build b/src/libtracker-common/meson.build
index e2a1ad34b..7310741fb 100644
--- a/src/libtracker-common/meson.build
+++ b/src/libtracker-common/meson.build
@@ -30,9 +30,13 @@ else
tracker_common_sources += 'tracker-parser-libunistring.c'
endif
-# FIXME: need to link against -lkvm on OpenBSD, see configure.ac
tracker_common_dependencies = [glib, gio, gio_unix, libmath, libstemmer]
+if build_machine.system() == 'openbsd'
+ libkvm = meson.get_compiler('c').find_library('kvm')
+ tracker_common_dependencies += libkvm
+endif
+
libtracker_common = library('tracker-common',
tracker_common_sources,
dependencies: tracker_common_dependencies + [unicode_library],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]