From 3badbb06227a0f42bb2b23b2f287bd8d403ad2d7 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 18 Jan 2015 18:12:18 +1100 Subject: 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. --- linkers/wscript | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linkers/wscript') 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'] -- cgit v1.2.3