summaryrefslogtreecommitdiff
path: root/linkers/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-01-18 18:12:18 +1100
committerChris Johns <chrisj@rtems.org>2015-01-18 18:12:18 +1100
commit3badbb06227a0f42bb2b23b2f287bd8d403ad2d7 (patch)
tree4708fa8531a83f4ada01e71b53433eb7ade65372 /linkers/wscript
parent3f4717852dddcf8ba56478ba98b9dbda32d87182 (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/wscript2
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']