Opened 12 years ago

Last modified 12 years ago

#4147 new Bugs

Use target-os instead of os in Jamfiles

Reported by: Steve Soule <sts11dbxr@…> Owned by: Vladimir Prus
Milestone: Boost 1.43.0 Component: build
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

In many of the Jamfiles in Boost, the "os" property is used to add libraries and defines appropriate to the target operating system. But the "os" property doesn't give the target operating system; it gives the build operating system. The "target-os" property gives the target operating system. So these Jamfiles do the wrong thing when cross-compiling.

According to Vladimir Prus on the Boost-build mailing list:

"Yes, in most cases 'target-os' should be used. Please file bugs for libraries that use 'os'."

The full list of Boost libraries that appear to have this problem is:

asio iostreams thread

I generated this list by doing "grep 'import os'" and filtering out the python files, so it may not be all that accurate.

Change History (1)

comment:1 by anonymous, 12 years ago

Component: Building Boostbuild
Owner: set to Vladimir Prus

Merge Building Boost with build tool.

Note: See TracTickets for help on using tickets.