Mercurial > gub
changeset 6358:320da60cd586
Fix linux-x86::cross/gcc-core on linux-x86 hosts
When build / host and target are just same,
gcc building is failed.
author | Masamichi Hosoda <trueroad@users.noreply.github.com> |
---|---|
date | Wed, 25 Feb 2015 00:31:14 +0900 |
parents | 824bfbe0b6aa |
children | d02df78f9193 |
files | gub/specs/cross/gcc.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/cross/gcc.py Tue Feb 24 23:29:14 2015 +0900 +++ b/gub/specs/cross/gcc.py Wed Feb 25 00:31:14 2015 +0900 @@ -72,6 +72,11 @@ class Gcc__from__source (Gcc): dependencies = (Gcc.dependencies + ['cross/gcc-core', 'glibc-core']) + def __init__ (self, settings, source): + Gcc.__init__ (self, settings, source) + if 'i686-linux' in self.settings.build_architecture: + if 'i686-linux' in self.settings.target_architecture: + self.configure_flags += ' --build=i686-unknown-linux-gnu ' #FIXME: merge all configure_command settings with Gcc configure_flags = (Gcc.configure_flags + misc.join_lines ('''