summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-04-29 07:26:24 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-05-06 13:37:57 +0200
commit5f02110b9fb67d955d4b6a64145ad90774793f87 (patch)
tree1bc88041ade9a5f73eee3b6c9379bd27a42a1b5a
parentcd6f1c242a2d9a8c92bb90dc1c73d0cba53d3558 (diff)
mingw-w64: only build the CRT for the target arch
-rw-r--r--recipes/toolchain/mingw-w64.recipe2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes/toolchain/mingw-w64.recipe b/recipes/toolchain/mingw-w64.recipe
index ee9f8b7..3cb9de3 100644
--- a/recipes/toolchain/mingw-w64.recipe
+++ b/recipes/toolchain/mingw-w64.recipe
@@ -10,8 +10,10 @@ class Recipe(recipe.Recipe):
def prepare(self):
if self.config.target_arch == Architecture.X86:
host = 'i686-w64-mingw32'
+ self.configure_options += ' --disable-lib64 '
else:
host = 'x86_64-w64-mingw32'
+ self.configure_options += ' --disable-lib32 '
self.configure_options += ' --host=%s' % host
files = ['%s/lib/%s' % (host, x) for x in self.files_crt]
files.extend(['%s/lib/%s' % ('mingw', x) for x in self.files_crt])