From 593be166d16e371837d85ff4e963cf8c71b569c7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 6 Sep 2021 18:52:54 -0500 Subject: [PATCH] build: fix libexecdir --- meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6c59e9b5..585ebb2d 100644 --- a/meson.build +++ b/meson.build @@ -78,7 +78,13 @@ rootprefix = rootprefix_path != '' ? rootprefix_path : rootprefix_default bindir = rootprefix / get_option('bindir') libdir = rootprefix / get_option('libdir') -libexecdir = rootprefix / get_option('libexecdir') +if os == 'Linux' and split_usr + libexecpath = 'lib' +else + libexecpath = get_option('libexecdir') +endif +libexecdir = split_usr ? rootprefix / libexecpath : + get_option('prefix') / libexecpath rc_libexecdir = libexecdir / 'rc' sbindir = rootprefix / get_option('sbindir')