diff options
author | Chris Johns <chrisj@rtems.org> | 2014-02-04 18:20:40 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-02-04 18:20:40 +1100 |
commit | 7c30130169d6121ba2c2bbc514e90c1c77bafd48 (patch) | |
tree | 377fe623ab70d8e1869acb5be36e3b0e45a227b5 | |
parent | config: Default _internal_autotools_path to nil when not an internal build. (diff) | |
download | rtems-source-builder-7c30130169d6121ba2c2bbc514e90c1c77bafd48.tar.bz2 |
darwin: Default to cc and c++ for Mavrick.
-rw-r--r-- | source-builder/sb/darwin.py | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/source-builder/sb/darwin.py b/source-builder/sb/darwin.py index 51fb070..96e4bf5 100644 --- a/source-builder/sb/darwin.py +++ b/source-builder/sb/darwin.py @@ -36,24 +36,33 @@ def load(): else: ncpus = '1' defines = { - '_ncpus': ('none', 'none', ncpus), - '_os': ('none', 'none', 'darwin'), - '_host': ('triplet', 'required', uname[4] + '-apple-darwin' + uname[2]), - '_host_vendor': ('none', 'none', 'apple'), - '_host_os': ('none', 'none', 'darwin'), - '_host_cpu': ('none', 'none', uname[4]), - '_host_alias': ('none', 'none', '%{nil}'), - '_host_arch': ('none', 'none', uname[4]), - '_usr': ('dir', 'optional', '/usr/local'), - '_var': ('dir', 'optional', '/usr/local/var'), - '_prefix': ('dir', 'optional', '%{_usr}'), - '__ldconfig': ('exe', 'none', ''), - '__cvs': ('exe', 'required', 'cvs'), - '__xz': ('exe', 'required', '%{_usr}/bin/xz'), - 'with_zlib': ('none', 'none', '--with-zlib=no'), - '_forced_static': ('none', 'none', '') + '_ncpus': ('none', 'none', ncpus), + '_os': ('none', 'none', 'darwin'), + '_host': ('triplet', 'required', uname[4] + '-apple-darwin' + uname[2]), + '_host_vendor': ('none', 'none', 'apple'), + '_host_os': ('none', 'none', 'darwin'), + '_host_cpu': ('none', 'none', uname[4]), + '_host_alias': ('none', 'none', '%{nil}'), + '_host_arch': ('none', 'none', uname[4]), + '_usr': ('dir', 'optional', '/usr/local'), + '_var': ('dir', 'optional', '/usr/local/var'), + '_prefix': ('dir', 'optional', '%{_usr}'), + '__ldconfig': ('exe', 'none', ''), + '__cvs': ('exe', 'required', 'cvs'), + '__xz': ('exe', 'required', '%{_usr}/bin/xz'), + 'with_zlib': ('none', 'none', '--with-zlib=no'), + '_forced_static': ('none', 'none', ''), + '_extra_path': ('none', 'none', '%{_sbdir}/bin'), + '_ld_library_path': ('none', 'none', 'DYLD_LIBRARY_PATH') } + version = uname[2] + if version.find('.'): + version = version.split('.')[0] + if int(version) >= 13: + defines['__cc'] = ('exe', 'required', '/usr/bin/cc') + defines['__cxx'] = ('exe', 'required', '/usr/bin/c++') + defines['_build'] = defines['_host'] defines['_build_vendor'] = defines['_host_vendor'] defines['_build_os'] = defines['_host_os'] |