diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2021-09-20 22:49:05 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-09-21 10:26:57 -0500 |
commit | d07572e1b7853f30e920d1ff9c7c55f21d5c96e5 (patch) | |
tree | 8c942b02854897ce834f5a38bf16476df007d81f | |
parent | 2ee9d9259937c4a83dc31ef174d1496186fdfd09 (diff) |
build: fix rootprefix
This fixes #438.
-rw-r--r-- | meson.build | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/meson.build b/meson.build index 3b787086..43df8fa5 100644 --- a/meson.build +++ b/meson.build @@ -72,19 +72,19 @@ else split_usr = get_option('split-usr') == 'true' endif -rootprefix_default = split_usr ? '/' : '/usr' -rootprefix_path = get_option('rootprefix') -rootprefix = rootprefix_path != '' ? rootprefix_path : rootprefix_default +rootprefix = get_option('rootprefix') +rootprefix_default = '/' +if rootprefix == '' +rootprefix = rootprefix_default +endif bindir = rootprefix / get_option('bindir') libdir = rootprefix / get_option('libdir') -if os == 'Linux' and split_usr - libexecpath = 'lib' -else - libexecpath = get_option('libexecdir') +libexecdir = get_option('libexecdir') +if os == 'Linux' and libexecdir == 'libexec' + libexecdir = 'lib' endif -libexecdir = split_usr ? rootprefix / libexecpath : - get_option('prefix') / libexecpath +libexecdir = rootprefix / libexecdir rc_libexecdir = libexecdir / 'rc' sbindir = rootprefix / get_option('sbindir') |