|
Boost-Commit : |
From: juergen.hunold_at_[hidden]
Date: 2008-07-21 04:43:48
Author: jhunold
Date: 2008-07-21 04:43:47 EDT (Mon, 21 Jul 2008)
New Revision: 47651
URL: http://svn.boost.org/trac/boost/changeset/47651
Log:
Fix: additional_paths argument must be a list containing 'bin'.
Fix: bjam.variable returns a list, the first element is the hostname.
ToDo: change current host_os_name to use 'target-os' feature.
Text files modified:
branches/build/python_port/python/boost/build/tools/gcc.py | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
Modified: branches/build/python_port/python/boost/build/tools/gcc.py
==============================================================================
--- branches/build/python_port/python/boost/build/tools/gcc.py (original)
+++ branches/build/python_port/python/boost/build/tools/gcc.py 2008-07-21 04:43:47 EDT (Mon, 21 Jul 2008)
@@ -186,7 +186,7 @@
# creates empty object files. This allows the same Jamfiles to work
# across the board. The null RC uses the assembler to create the empty
# objects, so configure that.
- rc_command = common.get_invocation_command('gcc', 'as', [], bin, path_last=True)
+ rc_command = common.get_invocation_command('gcc', 'as', [], ['bin'], path_last=True)
rc_type = 'null'
rc.configure(rc_command, condition, '<rc-type>' + rc_type)
@@ -666,23 +666,24 @@
flags('gcc', 'OPTIONS', ['<threading>multi'], ['-mthreads'])
elif bjam.variable('UNIX'):
jamuname = bjam.variable('JAMUNAME')
- if jamuname.startswith('SunOS'):
+ host_os_name = jamuname[0]
+ if host_os_name.startswith('SunOS'):
flags('gcc', 'OPTIONS', ['<threading>multi'], ['-pthreads'])
flags('gcc', 'FINDLIBS-SA', [], ['rt'])
- elif jamuname == 'BeOS':
+ elif host_os_name == 'BeOS':
# BeOS has no threading options, don't set anything here.
pass
- elif jamuname.endswith('BSD'):
+ elif host_os_name.endswith('BSD'):
flags('gcc', 'OPTIONS', ['<threading>multi'], ['-pthread'])
# there is no -lrt on BSD
- elif jamuname == 'DragonFly':
+ elif host_os_name == 'DragonFly':
flags('gcc', 'OPTIONS', ['<threading>multi'], ['-pthread'])
# there is no -lrt on BSD - DragonFly is a FreeBSD variant,
# which anoyingly doesn't say it's a *BSD.
- elif jamuname == 'IRIX':
+ elif host_os_name == 'IRIX':
# gcc on IRIX does not support multi-threading, don't set anything here.
pass
- elif jamuname == 'Darwin':
+ elif host_os_name == 'Darwin':
# Darwin has no threading options, don't set anything here.
pass
else:
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk