-mthreads is obsolete and is not presented in clang, and was never a thing in cygwin (fixes#38).
I have no idea why clang was configured to add -pthread on threadapi=win32, changing this is a breaking change but is the right thing to do. I run Boost.Thread tests and it passed cleanly on both threadapi=win32 and threadapi=pthread.
Removes additional point of failure, the need for actual toolset to be available, and speeds up mock tests considerably.
A bit disgusting solution, could be improved by removing limitation where toolsets take into account only first `<archive>` value.
I choose -soname over -h since it is self-describing and well-supported, libtool.m4 uses -h only on solaris, interix, sco, unixware.
This also disables soname on windows completely. lld on msys2 clang64 for some reason doesn't implement neither -h nor -soname. I checked that on msys2 (cygwin) gcc it produces identical dlls w/ and w/o -soname (with --no-insert-timestamp).
I don't know if there any system where -R option is supported while -rpath is not, seems like it usually the other way around. Anyway it should be dealt in gcc toolset then.
`ar s` seems to be widely supported for a very long time:
- at least binutils 2.10 (June 2000)
- at least Darwin 8.0 (April 2005)
- since FreeBSD 3.0 (October 1998)
Note: Most of other (non-widely used) toolsets do not call `ranlib` and do not call `ar` with `s` flag either. I have no idea if they are correct or not, so I am not touching them here.
This implements the ability for response file "@()" substitution to
dynamically adjust to either expand the content or create the response
file depending on the possible command line length. This should
reduce the create of such response temp files improving build
performance.
This adds exclusions for toolsets that use response files for some
commands. Mostly it ignores the generated rsp files.
But also adds a special arg_file value to the MockProgram for future
use for possible content checking.
Now that the tests work in py2 or p3 we don't set py version in AP. This
allows for dealing with the AP images that don't have a way to set the
py version.
Squashed commit of the following:
commit a777fc2ed9
Author: Brian Kuhl <brian.kuhl@windriver.com>
Date: Fri Jan 12 00:22:37 2018 -0500
configure VxWorks/Dinkum STL to match <rtti>/<exception-handling>