summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-19 15:58:37 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-19 16:34:14 +1000
commitb6dff759f7016bb4820fc8f9d660bf565c7caeee (patch)
treeb0875b0fccd54afb12040497d12c26823eaab319 /buildtools/wafsamba/wscript
parent5040e2a6fbe8b240b1d445e1260bb95203618b75 (diff)
downloadsamba-b6dff759f7016bb4820fc8f9d660bf565c7caeee.tar.gz
samba-b6dff759f7016bb4820fc8f9d660bf565c7caeee.tar.bz2
samba-b6dff759f7016bb4820fc8f9d660bf565c7caeee.zip
build: added --cross-answers support
This allows you to easily cross-compile even without a --cross-execute emulator See http://wiki.samba.org/index.php/Waf#cross-compiling for details
Diffstat (limited to 'buildtools/wafsamba/wscript')
-rw-r--r--buildtools/wafsamba/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index a611797b47..a49e5e7368 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -93,6 +93,9 @@ def set_options(opt):
gr.add_option('--cross-execute',
help=("command prefix to use for cross-execution in configure"),
action='store', dest='CROSS_EXECUTE', default='')
+ gr.add_option('--cross-answers',
+ help=("answers to cross-compilation configuration (auto modified)"),
+ action='store', dest='CROSS_ANSWERS', default='')
gr.add_option('--hostcc',
help=("set host compiler when cross compiling"),
action='store', dest='HOSTCC', default=False)
@@ -152,6 +155,7 @@ def configure(conf):
conf.env.CROSS_COMPILE = Options.options.CROSS_COMPILE
conf.env.CROSS_EXECUTE = Options.options.CROSS_EXECUTE
+ conf.env.CROSS_ANSWERS = Options.options.CROSS_ANSWERS
conf.env.HOSTCC = Options.options.HOSTCC
conf.env.AUTOCONF_BUILD = Options.options.AUTOCONF_BUILD