diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2011-05-20 23:46:16 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2011-05-20 23:46:16 (GMT) |
commit | 5892199502d92c584f6769651305c15181eca8af (patch) | |
tree | c825b39ba10cf3047de6bfe6be9f1bd9bcef412e /src/nsis-1-explicit-mingw-cross-prefix.patch | |
parent | 21d02040b604ae36e1c709663ede438fa14d8c29 (diff) | |
download | mxe-5892199502d92c584f6769651305c15181eca8af.zip mxe-5892199502d92c584f6769651305c15181eca8af.tar.gz mxe-5892199502d92c584f6769651305c15181eca8af.tar.bz2 |
bugfix: enable package nsis to use the correct MinGW cross toolchain on systems where multiple MinGW cross toolchains are present
Diffstat (limited to 'src/nsis-1-explicit-mingw-cross-prefix.patch')
-rw-r--r-- | src/nsis-1-explicit-mingw-cross-prefix.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/nsis-1-explicit-mingw-cross-prefix.patch b/src/nsis-1-explicit-mingw-cross-prefix.patch new file mode 100644 index 0000000..df28944 --- /dev/null +++ b/src/nsis-1-explicit-mingw-cross-prefix.patch @@ -0,0 +1,39 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +This patch has been taken from: +http://sourceforge.net/tracker/index.php?func=detail&aid=3305366&group_id=22049&atid=373085 + +--- a/SCons/Tools/crossmingw.py ++++ b/SCons/Tools/crossmingw.py +@@ -61,6 +61,9 @@ prefixes = SCons.Util.Split(""" + """) + + def find(env): ++ if env.has_key('MINGW_CROSS_PREFIX'): ++ return env['MINGW_CROSS_PREFIX'] ++ + for prefix in prefixes: + # First search in the SCons path and then the OS path: + if env.WhereIs(prefix + 'gcc') or SCons.Util.WhereIs(prefix + 'gcc'): +diff --git a/SConstruct b/SConstruct +index 80872bc..4f113dd 100755 +--- a/SConstruct ++++ b/SConstruct +@@ -59,6 +59,7 @@ doc = [ + + path = ARGUMENTS.get('PATH', '') + toolset = ARGUMENTS.get('TOOLSET', '') ++mingw_cross_prefix = ARGUMENTS.get('MINGW_CROSS_PREFIX', '') + + if toolset and path: + defenv = Environment(ENV = {'PATH' : path}, TOOLS = toolset.split(',') + ['zip']) +@@ -69,6 +70,8 @@ else: + defenv = Environment(TOOLS = toolset.split(',') + ['zip']) + if not toolset and not path: + defenv = Environment() ++if mingw_cross_prefix: ++ defenv['MINGW_CROSS_PREFIX'] = mingw_cross_prefix + + Export('defenv') + |