build: move more Linux-only options inside group

prefix, destdir, libdir, bindir only make sense for Linux targets.
This commit is contained in:
Lucas De Marchi 2018-03-27 00:49:41 -07:00
parent 73edda697d
commit 3ecc138c86
1 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,13 @@ submodules at specific revisions.
g = opt.ap_groups['linux']
linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')
for k in linux_options:
option = opt.parser.get_option(k)
if option:
opt.parser.remove_option(k)
g.add_option(option)
g.add_option('--rsync-dest',
dest='rsync_dest',
action='store',