diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2021-09-06 18:52:54 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-09-06 18:52:54 -0500 |
commit | 593be166d16e371837d85ff4e963cf8c71b569c7 (patch) | |
tree | 7f3875039ae0dc8035d66c02e7fab897dcdea3d3 | |
parent | ca0270967c880ef87dbaea04c267c5c463377b2e (diff) |
build: fix libexecdir
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
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') |