darwin: Default to cc and c++ for Mavrick.

This commit is contained in:
Chris Johns 2014-02-04 18:20:40 +11:00
parent 00693f913b
commit 7c30130169

View File

@ -51,9 +51,18 @@ def load():
'__cvs': ('exe', 'required', 'cvs'),
'__xz': ('exe', 'required', '%{_usr}/bin/xz'),
'with_zlib': ('none', 'none', '--with-zlib=no'),
'_forced_static': ('none', 'none', '')
'_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']