Steve,
thank you as always. This worked perfectly.
One quick follow-up question. This library depends on pthreads, and I had been using the lib pthreads ; dependency and adding it to the sources list of the library. It works perfectly with clang but fails with gcc 4.8.2. I switched it to using <threading>multi and it still didn't work until I also added <threading>multi to the application that is linking to it :
## Library
alias hts
: libhts.a z
: <link>static <threading>multi
:
: <include>htslib
;
## Application (boost-test)
run [ glob *.cpp ] /gamgee//gamgee /gamgee/libs//hts boost_unit_test_framework
:
:
: <define>BOOST_ALL_DYN_LINK <threading>multi
: run ;
I thought that the application would learn from the library's dependency on multi-threading and automatically turn it on, but it didn't. I tried moving the <threading>multi to the requirements (together with the <include>htslib) but that didn't do it either. Do you have any insights on this?