config: Fix the host and build options for Canadian cross builds.

The ARM on 4.9.0 with clang fails and needs an extra option and
this is only valid building the build cross compiler. This change
fxies the host and build flags so they only apply where needed.
This commit is contained in:
Chris Johns
2014-05-04 06:22:46 +00:00
parent 3adcfbf9d9
commit 2a6acc7267
3 changed files with 47 additions and 36 deletions

View File

@@ -83,6 +83,7 @@ def load():
cxx = '/usr/bin/c++'
if check.check_exe(cxx, cxx):
defines['__cxx'] = cxx
defines['optflags_build'] = '-O2 -pipe -fbracket-depth=1024'
cvs = 'cvs'
if check.check_exe(cvs, cvs):
defines['__cvs'] = cvs