summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-04-30 12:24:24 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-05-06 16:03:10 +0200
commita6a9b2f501191bbfa293bc10fe5afc8151e2ca06 (patch)
tree664de944ae027f104d5442d9dcd9f60a56f652f5
parent09d4bc51a7fb57d84fe25f108f5431eb40101492 (diff)
toolchain: set host correctly
-rw-r--r--recipes/toolchain/binutils.recipe2
-rw-r--r--recipes/toolchain/gcc-core.recipe2
2 files changed, 4 insertions, 0 deletions
diff --git a/recipes/toolchain/binutils.recipe b/recipes/toolchain/binutils.recipe
index 354fd24..2a70033 100644
--- a/recipes/toolchain/binutils.recipe
+++ b/recipes/toolchain/binutils.recipe
@@ -41,6 +41,8 @@ class Recipe(recipe.Recipe):
else:
self.target = 'x86_64-w64-mingw32'
self.configure_options += ' --target=%s' % self.target
+ if self.config.target_platform == Platform.WINDOWS:
+ self.configure_options += ' --host=%s' % self.target
# Append the host prefix to the binaries
self.files_bins = ['%s-%s' % (self.target, x) for x in self.files_bins]
diff --git a/recipes/toolchain/gcc-core.recipe b/recipes/toolchain/gcc-core.recipe
index fd4b317..8eb98ef 100644
--- a/recipes/toolchain/gcc-core.recipe
+++ b/recipes/toolchain/gcc-core.recipe
@@ -33,6 +33,8 @@ class Recipe(recipe.Recipe):
else:
self._target = 'x86_64-w64-mingw32'
self.configure_options += ' --target=%s' % self._target
+ if self.config.target_platform == Platform.WINDOWS:
+ self.configure_options += ' --host=%s' % self._target
self.configure_options += ' --oldincludedir=%s/%s/include ' % \
(self.config.prefix, self._target)
if self.config.target_platform == Platform.WINDOWS: