Boost logo

Boost :

Subject: [boost] [Build] Create test with shared library linked against current Boost link-variant
From: Alexander Grund (alexander.grund_at_[hidden])
Date: 2018-06-18 08:56:45


for a test case for Boost.Serialization  I need to build shared
libraries, linked against the current boost library variant (shared or

How do I do this in Boost.Build?

Adding `<link>shared` to the library makes it link against shared boost,
but never to static boost. Adding
"../build//boost_serialization/<link>static" will be the other way round
and fails, if `-fPIC` is not passed, which is not the default.

Alexander Grund

Boost list run by bdawes at, gregod at, cpdaniel at, john at