diff options
author | Chris Johns <chrisj@rtems.org> | 2015-01-18 18:12:18 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2015-01-18 18:12:18 +1100 |
commit | 3badbb06227a0f42bb2b23b2f287bd8d403ad2d7 (patch) | |
tree | 4708fa8531a83f4ada01e71b53433eb7ade65372 /linkers/wscript | |
parent | 3f4717852dddcf8ba56478ba98b9dbda32d87182 (diff) |
Add support to cross-compile. Use --hosti=.
On FreeBSD use --host=mingw32 for Windows. If you use another
OS you might need to add the specific windows host to the
top level wscript file.
Diffstat (limited to '')
-rw-r--r-- | linkers/wscript | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linkers/wscript b/linkers/wscript index 6cfbedb..d48ce47 100644 --- a/linkers/wscript +++ b/linkers/wscript @@ -41,6 +41,8 @@ def build(bld): rtemstoolkit + '/elftoolchain/libelf', rtemstoolkit + '/elftoolchain/common', rtemstoolkit + '/libiberty'] + if bld.env.DEST_OS == 'win32': + conf['includes'] += [rtemstoolkit + '/win32'] conf['warningflags'] = ['-Wall', '-Wextra', '-pedantic'] conf['optflags'] = bld.env.C_OPTS conf['cflags'] = ['-pipe', '-g'] + conf['optflags'] |