diff options
author | Chris Johns <chrisj@rtems.org> | 2013-05-15 12:15:14 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-05-15 12:15:14 +1000 |
commit | db65c6aaf1e73722cfa1327d77419ecc402f096a (patch) | |
tree | 282a2cccf62ad776a0f50beaec02ee936c7ed2d5 /source-builder/sb/darwin.py | |
parent | Add better error messages. (diff) | |
download | rtems-source-builder-db65c6aaf1e73722cfa1327d77419ecc402f096a.tar.bz2 |
Support Canadian cross builds on FreeBSD (and other hosts).
Set up the rules to manage the separate host and build setting to
allow a Canadian cross to complete.
Update the scripts to move the build directory and host/build
flags into the defaults so they are common for all build
configurations.
Diffstat (limited to 'source-builder/sb/darwin.py')
-rw-r--r-- | source-builder/sb/darwin.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source-builder/sb/darwin.py b/source-builder/sb/darwin.py index b924a0f..498ac48 100644 --- a/source-builder/sb/darwin.py +++ b/source-builder/sb/darwin.py @@ -47,12 +47,19 @@ def load(): '_usr': ('dir', 'optional', '/usr/local'), '_var': ('dir', 'optional', '/usr/local/var'), '_prefix': ('dir', 'optional', '%{_usr}'), - 'optflags': ('none', 'none', '-O2'), '__ldconfig': ('exe', 'none', ''), '__xz': ('exe', 'required', '%{_usr}/bin/xz'), 'with_zlib': ('none', 'none', '--with-zlib=no'), '_forced_static': ('none', 'none', '') } + + defines['_build'] = defines['_host'] + defines['_build_vendor'] = defines['_host_vendor'] + defines['_build_os'] = defines['_host_os'] + defines['_build_cpu'] = defines['_host_cpu'] + defines['_build_alias'] = defines['_host_alias'] + defines['_build_arch'] = defines['_host_arch'] + return defines if __name__ == '__main__': |