From 9c448ea79ebb0899dc18746fa7f31e19803c4d88 Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Mon, 22 Jan 2018 15:04:07 +0200 Subject: meson: Use absolute path for IGT_DATADIR IGT_DATADIR needs to be an absolute path instead of relative to prefix or data files can only be found if cwd is exactly prefix. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104723 Signed-off-by: Petri Latvala Cc: Arkadiusz Hiler Reviewed-by: Arkadiusz Hiler --- lib/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index b3bbc311..94ea0799 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -159,7 +159,7 @@ foreach f: lib_sources include_directories: inc, dependencies : lib_deps, c_args : [ - '-DIGT_DATADIR="@0@"'.format(datadir), + '-DIGT_DATADIR="@0@"'.format(join_paths(prefix, datadir)), '-DIGT_SRCDIR="@0@"'.format(srcdir), '-DIGT_LOG_DOMAIN="@0@"'.format(f.split('.')[0]), ]) -- cgit v1.2.3