build: add split-usr option
This commit is contained in:
parent
444e44eb9d
commit
f2362cc277
12
meson.build
12
meson.build
@ -66,10 +66,16 @@ else
|
|||||||
pkg_prefix = option_pkg_prefix
|
pkg_prefix = option_pkg_prefix
|
||||||
endif
|
endif
|
||||||
|
|
||||||
rootprefix = get_option('rootprefix')
|
if get_option('split-usr') == 'auto'
|
||||||
if rootprefix == ''
|
split_usr = run_command('test', '-L', '/bin').returncode() != 0
|
||||||
rootprefix = '/'
|
else
|
||||||
|
split_usr = get_option('split-usr') == 'true'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
rootprefix_default = split_usr ? '/' : '/usr'A
|
||||||
|
rootprefix_path = get_option('rootprefix')
|
||||||
|
rootprefix = rootprefix_path != '' ? rootprefix_path : rootprefix_default
|
||||||
|
|
||||||
bindir = rootprefix / get_option('bindir')
|
bindir = rootprefix / get_option('bindir')
|
||||||
libdir = rootprefix / get_option('libdir')
|
libdir = rootprefix / get_option('libdir')
|
||||||
libexecdir = rootprefix / get_option('libexecdir')
|
libexecdir = rootprefix / get_option('libexecdir')
|
||||||
|
@ -22,6 +22,9 @@ option('selinux', type : 'feature', value : 'auto',
|
|||||||
description : 'enable SELinux support')
|
description : 'enable SELinux support')
|
||||||
option('shell', type : 'string', value : '/bin/sh',
|
option('shell', type : 'string', value : '/bin/sh',
|
||||||
description : 'Default posix compatible shell')
|
description : 'Default posix compatible shell')
|
||||||
|
option('split-usr', type : 'combo',
|
||||||
|
choices : ['auto', 'true', 'false'],
|
||||||
|
description : '''/bin, /sbin aren't symlinks into /usr''')
|
||||||
option('sysvinit', type : 'boolean', value : false,
|
option('sysvinit', type : 'boolean', value : false,
|
||||||
description : 'enable SysVinit compatibility (linux only)')
|
description : 'enable SysVinit compatibility (linux only)')
|
||||||
option('termcap', type : 'combo',
|
option('termcap', type : 'combo',
|
||||||
|
Loading…
Reference in New Issue
Block a user