summaryrefslogtreecommitdiff
path: root/src/libtracker-common
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtracker-common')
-rw-r--r--src/libtracker-common/meson.build1
-rw-r--r--src/libtracker-common/tracker-parser.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libtracker-common/meson.build b/src/libtracker-common/meson.build
index 96124437b..800c14771 100644
--- a/src/libtracker-common/meson.build
+++ b/src/libtracker-common/meson.build
@@ -53,6 +53,7 @@ libtracker_common = static_library('tracker-common',
dependencies: [tracker_common_dependencies, gmodule],
c_args: [
'-DPRIVATE_LIBDIR="@0@"'.format(tracker_internal_libs_dir),
+ '-DBUILD_LIBDIR="@0@"'.format(meson.current_build_dir()),
'-DBUILDROOT="@0@"'.format(meson.build_root()),
] + tracker_c_args,
include_directories: [configinc, srcinc],
diff --git a/src/libtracker-common/tracker-parser.c b/src/libtracker-common/tracker-parser.c
index aaaed58de..2300e284e 100644
--- a/src/libtracker-common/tracker-parser.c
+++ b/src/libtracker-common/tracker-parser.c
@@ -91,7 +91,7 @@ ensure_init_parser (void)
* building introspection information or running tests.
* We want the in-tree modules to be loaded then.
*/
- module_path = g_strdup_printf (BUILDROOT "/src/libtracker-common/%s", modules[i]);
+ module_path = g_strdup_printf (BUILD_LIBDIR "/%s", modules[i]);
} else {
module_path = g_strdup_printf (PRIVATE_LIBDIR "/%s", modules[i]);
}